mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
54 lines
2.4 KiB
Handlebars
54 lines
2.4 KiB
Handlebars
<nav class="global-nav" role="navigation">
|
|
|
|
<a class="nav-item ghost-logo" {{bind-attr href=ghostPaths.blogRoot title=ghostPaths.blogRoot}}>
|
|
<div class="nav-label"><i class="icon-ghost"></i> <span>Visit blog</span> </div>
|
|
</a>
|
|
|
|
{{#link-to "posts" classNames="nav-item nav-content"}}
|
|
<div class="nav-label"><i class="icon-content"></i> Content</div>
|
|
{{/link-to}}
|
|
|
|
{{#link-to "editor.new" classNames="nav-item nav-new"}}
|
|
<div class="nav-label"><i class="icon-add"></i> New Post</div>
|
|
{{/link-to}}
|
|
|
|
{{#unless session.user.isAuthor}}
|
|
{{#link-to "settings" classNames="nav-item nav-settings"}}
|
|
<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>
|
|
</a>
|
|
<a class="nav-item thing2" href="#">
|
|
<div class="nav-label">Thing2</div>
|
|
</a>
|
|
|
|
}}
|
|
|
|
<div class="nav-item user-menu" data-href="#">
|
|
{{#gh-popover-button popoverName="user-menu" tagName="div" classNames="nav-label"}}
|
|
{{#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"}}
|
|
<ul class="dropdown-menu dropdown-triangle-top-right" role="menu">
|
|
<li role="presentation">{{#link-to "settings.users.user" session.user.slug classNames="dropdown-item user-menu-profile" role="menuitem" tabindex="-1"}}Your Profile{{/link-to}}</li>
|
|
<li role="presentation"><a class="dropdown-item user-menu-support" role="menuitem" tabindex="-1" href="http://support.ghost.org/">Help / Support</a></li>
|
|
<li class="divider"></li>
|
|
<li role="presentation">{{#link-to "signout" classNames="dropdown-item user-menu-signout" role="menuitem" tabindex="-1"}}Sign Out{{/link-to}}</li>
|
|
</ul>
|
|
{{/gh-popover}}
|
|
</div>{{! .user-menu }}
|
|
|
|
</nav>{{! .global-nav }} |