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-05-28 23:26:05 +04:00
|
|
|
{{gh-activating-list-item route="posts" title="Content" classNames="content"}}
|
2014-06-19 13:08:55 +04:00
|
|
|
{{gh-activating-list-item route="editor.new" title="New Post" classNames="editor"}}
|
2014-05-28 23:26:05 +04:00
|
|
|
{{gh-activating-list-item route="settings" title="Settings" classNames="settings"}}
|
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-05-15 05:24:49 +04:00
|
|
|
{{#if user.image}}
|
2014-05-15 03:36:13 +04:00
|
|
|
<img class="avatar" {{bind-attr src="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-05-15 03:36:13 +04:00
|
|
|
<span class="name">{{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-06-02 00:29:25 +04:00
|
|
|
<li class="usermenu-profile">{{#link-to "settings.user"}}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>
|