2014-08-05 13:17:20 +04:00
|
|
|
<nav class="global-nav" role="navigation">
|
|
|
|
|
2014-08-17 23:23:00 +04:00
|
|
|
<a class="nav-item ghost-logo" {{bind-attr href=ghostPaths.blogRoot title=ghostPaths.blogRoot}}>
|
2014-08-05 13:17:20 +04:00
|
|
|
<div class="nav-label"><i class="icon-ghost"></i> <span>Visit blog</span> </div>
|
|
|
|
</a>
|
|
|
|
|
2014-09-01 20:45:06 +04:00
|
|
|
{{#link-to "posts" classNames="nav-item nav-content js-nav-item"}}
|
2014-08-05 13:17:20 +04:00
|
|
|
<div class="nav-label"><i class="icon-content"></i> Content</div>
|
|
|
|
{{/link-to}}
|
|
|
|
|
2014-09-01 20:45:06 +04:00
|
|
|
{{#link-to "editor.new" classNames="nav-item nav-new js-nav-item"}}
|
2014-08-05 13:17:20 +04:00
|
|
|
<div class="nav-label"><i class="icon-add"></i> New Post</div>
|
|
|
|
{{/link-to}}
|
2014-08-11 13:25:30 +04:00
|
|
|
|
2014-08-05 13:17:20 +04:00
|
|
|
{{#unless session.user.isAuthor}}
|
2014-09-01 20:45:06 +04:00
|
|
|
{{#link-to "settings" classNames="nav-item nav-settings js-nav-item"}}
|
2014-08-05 13:17:20 +04:00
|
|
|
<div class="nav-label"><i class="icon-settings2"></i> Settings</div>
|
|
|
|
{{/link-to}}
|
|
|
|
{{/unless}}
|
|
|
|
|
|
|
|
{{! TODO: Mobile-only menu items
|
|
|
|
|
|
|
|
<a class="nav-item thing" href="#">
|
|
|
|
<div class="nav-label">Thing</div>
|
2014-08-11 13:25:30 +04:00
|
|
|
</a>
|
2014-08-05 13:17:20 +04:00
|
|
|
<a class="nav-item thing2" href="#">
|
|
|
|
<div class="nav-label">Thing2</div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
}}
|
2014-08-11 13:25:30 +04:00
|
|
|
|
2014-08-05 13:17:20 +04:00
|
|
|
<div class="nav-item user-menu" data-href="#">
|
2014-09-01 20:45:06 +04:00
|
|
|
{{#gh-popover-button popoverName="user-menu" tagName="div" classNames="nav-label clearfix"}}
|
2014-08-05 13:17:20 +04:00
|
|
|
{{#if session.user.image}}
|
|
|
|
<div class="image"><img {{bind-attr src="session.user.image"}} alt="{{session.user.name}}'s profile picture" /></div>
|
|
|
|
{{else}}
|
|
|
|
<div class="image"><img src="/shared/img/user-image.png" alt="Profile picture" /></div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="name">
|
|
|
|
{{session.user.name}} <i class="icon-chevron-down"></i>
|
|
|
|
<small>Profile & Settings</small>
|
|
|
|
</div>
|
|
|
|
{{/gh-popover-button}}
|
|
|
|
{{#gh-popover tagName="div" classNames="dropdown" name="user-menu" closeOnClick="true"}}
|
2014-09-01 20:45:06 +04:00
|
|
|
<ul class="dropdown-menu dropdown-triangle-top-right js-user-menu-dropdown-menu" role="menu">
|
|
|
|
<li role="presentation">{{#link-to "settings.users.user" session.user.slug classNames="dropdown-item user-menu-profile js-nav-item" role="menuitem" tabindex="-1"}}Your Profile{{/link-to}}</li>
|
2014-08-17 23:23:00 +04:00
|
|
|
<li role="presentation"><a class="dropdown-item user-menu-support" role="menuitem" tabindex="-1" href="http://support.ghost.org/">Help / Support</a></li>
|
2014-08-05 13:17:20 +04:00
|
|
|
<li class="divider"></li>
|
2014-08-17 23:23:00 +04:00
|
|
|
<li role="presentation">{{#link-to "signout" classNames="dropdown-item user-menu-signout" role="menuitem" tabindex="-1"}}Sign Out{{/link-to}}</li>
|
2014-08-05 13:17:20 +04:00
|
|
|
</ul>
|
|
|
|
{{/gh-popover}}
|
|
|
|
</div>{{! .user-menu }}
|
2014-03-10 07:44:08 +04:00
|
|
|
|
2014-09-01 20:45:06 +04:00
|
|
|
</nav>{{! .global-nav }}
|
|
|
|
|
|
|
|
<div class="nav-cover js-nav-cover"></div>
|