2014-03-02 18:30:35 +04:00
|
|
|
<header id="global-header" class="navbar">
|
2014-06-24 03:24:13 +04:00
|
|
|
<a class="ghost-logo" {{bind-attr href=ghostPaths.blogRoot title=ghostPaths.blogRoot}} data-off-canvas="left">
|
2014-05-15 03:36:13 +04:00
|
|
|
<span class="hidden">Ghost</span>
|
2014-03-10 07:44:08 +04:00
|
|
|
</a>
|
2014-03-02 18:30:35 +04:00
|
|
|
<nav id="global-nav" role="navigation">
|
|
|
|
<ul id="main-menu" >
|
2014-07-07 18:55:22 +04:00
|
|
|
{{gh-activating-list-item route="posts" title="Content" classNames="content js-close-sidebar"}}
|
|
|
|
{{gh-activating-list-item route="editor.new" title="New Post" classNames="editor js-close-sidebar"}}
|
2014-07-22 01:19:46 +04:00
|
|
|
{{#unless session.user.isAuthor}}
|
|
|
|
{{gh-activating-list-item route="settings" title="Settings" classNames="settings js-close-sidebar"}}
|
|
|
|
{{/unless}}
|
2014-03-10 07:44:08 +04:00
|
|
|
|
|
|
|
<li id="usermenu" class="usermenu subnav">
|
2014-05-31 04:07:15 +04:00
|
|
|
{{#gh-popover-button popoverName="user-menu" tagName="a" href="#" classNames="dropdown"}}
|
2014-07-01 19:58:26 +04:00
|
|
|
{{#if session.user.image}}
|
|
|
|
<img class="avatar" {{bind-attr src="session.user.image"}} alt="Avatar" />
|
2014-05-15 05:24:49 +04:00
|
|
|
{{else}}
|
|
|
|
<img class="avatar" src="/shared/img/user-image.png" alt="Avatar" />
|
|
|
|
{{/if}}
|
2014-07-01 19:58:26 +04:00
|
|
|
<span class="name">{{session.user.name}}</span>
|
2014-05-31 04:07:15 +04:00
|
|
|
{{/gh-popover-button}}
|
|
|
|
{{#gh-popover tagName="ul" classNames="overlay" name="user-menu" closeOnClick="true"}}
|
2014-07-02 07:44:39 +04:00
|
|
|
<li class="usermenu-profile">{{#link-to "settings.users.user" session.user.slug}}Your Profile{{/link-to}}</li>
|
2014-04-07 02:11:22 +04:00
|
|
|
<li class="divider"></li>
|
2014-06-12 14:52:01 +04:00
|
|
|
<li class="usermenu-help"><a href="http://support.ghost.org/">Help / Support</a></li>
|
2014-04-07 02:11:22 +04:00
|
|
|
<li class="divider"></li>
|
2014-06-30 16:58:10 +04:00
|
|
|
<li class="usermenu-signout"><a {{ action 'invalidateSession' }}>Sign Out</a></li>
|
2014-05-28 23:26:05 +04:00
|
|
|
{{/gh-popover}}
|
2014-03-10 07:44:08 +04:00
|
|
|
</li>
|
2014-03-02 18:30:35 +04:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2014-03-10 07:44:08 +04:00
|
|
|
</header>
|