2014-08-05 13:17:20 +04:00
<nav class="global-nav" role="navigation">
2014-10-09 07:57:10 +04:00
<a class="nav-item ghost-logo" href=" {{ gh-path 'blog' }} " title="Visit blog">
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-24 15:03:19 +04:00
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-09-24 15:03:19 +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 }}
2014-09-24 15:03:19 +04:00
2014-08-05 13:17:20 +04:00
{{ ! 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-11-05 16:38:07 +03:00
<div class="nav-item user-menu">
2014-09-28 19:39:25 +04:00
{{ # gh-dropdown-button dropdownName = "user-menu" tagName = "div" classNames = "nav-label clearfix" }}
2015-01-28 19:30:03 +03:00
<span class="image" {{ bind-attr style = userImageBackground }} >
<img {{ bind-attr src = "userImage" title = "userImageAlt" }} >
</span>
2014-08-05 13:17:20 +04:00
<div class="name">
{{ session .user .name }} <i class="icon-chevron-down"></i>
<small>Profile & Settings</small>
</div>
2014-09-28 19:39:25 +04:00
{{ / gh-dropdown-button }}
{{ # gh-dropdown 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">
2014-09-24 15:03:19 +04:00
<li role="presentation"> {{ # link-to "settings.users.user" session .user .slug classNames = "dropdown-item user-menu-profile js-nav-item" role = "menuitem" tabindex = "-1" }} <i class="icon-user"></i> Your Profile {{ / link-to }} </li>
2014-08-05 13:17:20 +04:00
<li class="divider"></li>
2014-09-24 15:03:19 +04:00
<li role="presentation"> {{ # link-to "signout" classNames = "dropdown-item user-menu-signout" role = "menuitem" tabindex = "-1" }} <i class="icon-power"></i> Sign Out {{ / link-to }} </li>
2014-08-05 13:17:20 +04:00
</ul>
2014-09-28 19:39:25 +04:00
{{ / gh-dropdown }}
2014-08-05 13:17:20 +04:00
</div> {{! .user-menu }}
2014-03-10 07:44:08 +04:00
2015-03-07 23:35:45 +03:00
<div class="nav-item help-menu">
{{ # gh-dropdown-button dropdownName = "help-menu" tagName = "div" classNames = "nav-label clearfix" }}
<div class="help-button">
<i class="icon-question"><span class="hidden">Help</span></i>
</div>
{{ / gh-dropdown-button }}
{{ # gh-dropdown tagName = "div" classNames = "dropdown" name = "help-menu" closeOnClick = "true" }}
<ul class="dropdown-menu dropdown-triangle-top" role="menu">
<li role="presentation"><a class="dropdown-item help-menu-support" role="menuitem" tabindex="-1" href="http://support.ghost.org/" target="_blank"><i class="icon-support"></i> Support Center</a></li>
<li role="presentation"><a class="dropdown-item help-menu-tweet" role="menuitem" tabindex="-1" href="https://twitter.com/intent/tweet?text=%40TryGhost+Hi%21+Can+you+help+me+with+&related=TryGhost" target="_blank" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"><i class="icon-twitter"></i> Tweet @TryGhost!</a></li>
<li class="divider"></li>
<li role="presentation"><a class="dropdown-item help-menu-how-to" role="menuitem" tabindex="-1" href="http://support.ghost.org/how-to-use-ghost/" target="_blank"><i class="icon-book"></i> How to Use Ghost</a></li>
<li role="presentation"><a class="dropdown-item help-menu-markdown" role="menuitem" tabindex="-1" href="" {{ action "openModal" "markdown" }} ><i class="icon-markdown"></i> Markdown Help</a></li>
<li class="divider"></li>
<li role="presentation"><a class="dropdown-item help-menu-wishlist" role="menuitem" tabindex="-1" href="http://ideas.ghost.org/" target="_blank"><i class="icon-list"></i> Wishlist</a></li>
</ul>
{{ / gh-dropdown }}
</div> {{! .help-menu }}
2014-09-01 20:45:06 +04:00
</nav> {{! .global-nav }}
2014-09-24 15:03:19 +04:00
<div class="nav-cover js-nav-cover"></div>