mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
acb45cb660
References https://github.com/TryGhost/Ghost-UI/issues/65 - Swap signout link from an `<a>` tag to `<button>` - Changed tests to match new element
33 lines
1.8 KiB
Handlebars
33 lines
1.8 KiB
Handlebars
<header id="global-header" class="navbar">
|
|
<a class="ghost-logo" {{bind-attr href=ghostPaths.blogRoot title=ghostPaths.blogRoot}} data-off-canvas="left">
|
|
<span class="hidden">Ghost</span>
|
|
</a>
|
|
<nav id="global-nav" role="navigation">
|
|
<ul id="main-menu" >
|
|
{{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"}}
|
|
{{#unless session.user.isAuthor}}
|
|
{{gh-activating-list-item route="settings" title="Settings" classNames="settings js-close-sidebar"}}
|
|
{{/unless}}
|
|
|
|
<li id="usermenu" class="usermenu subnav">
|
|
{{#gh-popover-button popoverName="user-menu" tagName="a" href="#" classNames="dropdown"}}
|
|
{{#if session.user.image}}
|
|
<img class="avatar" {{bind-attr src="session.user.image"}} alt="Avatar" />
|
|
{{else}}
|
|
<img class="avatar" src="/shared/img/user-image.png" alt="Avatar" />
|
|
{{/if}}
|
|
<span class="name">{{session.user.name}}</span>
|
|
{{/gh-popover-button}}
|
|
{{#gh-popover tagName="ul" classNames="overlay" name="user-menu" closeOnClick="true"}}
|
|
<li class="usermenu-profile">{{#link-to "settings.users.user" session.user.slug}}Your Profile{{/link-to}}</li>
|
|
<li class="divider"></li>
|
|
<li class="usermenu-help"><a href="http://support.ghost.org/">Help / Support</a></li>
|
|
<li class="divider"></li>
|
|
<li class="usermenu-signout"><button {{action 'invalidateSession'}}>Sign Out</button></li>
|
|
{{/gh-popover}}
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|