mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
de7143bc62
closes #657, closes #761 - Got rid of initTheme from ghost.js (yay) - Divided up the logic for static assets and views - Ghost admin static assets are now served from /ghost/ - New logic to figure out if we're on the admin, or a theme and which theme we are on - Activate theme method reregisters static access and uncaches views - Re-ordered all of the middleware, and ensured we had a 404 handler at the end - Activate theme method ensures that middleware maintains order
25 lines
1.3 KiB
Handlebars
25 lines
1.3 KiB
Handlebars
|
|
<header id="global-header" class="navbar">
|
|
<a class="ghost-logo" href="{{url absolute="true"}}" data-off-canvas="left"><span class="hidden">Ghost </span></a>{{! TODO: Change this to actual Ghost homepage }}
|
|
<nav id="global-nav" role="navigation">
|
|
<ul id="main-menu" >
|
|
{{#each adminNav}}
|
|
<li class="{{navClass}}{{#if selected}} active{{/if}}"><a href="/ghost{{path}}">{{name}}</a></li>
|
|
{{/each}}
|
|
|
|
<li id="usermenu" class="subnav">
|
|
<a href="#" data-toggle="ul" class="dropdown">
|
|
<img class="avatar" src="{{#if currentUser.profile}}{{currentUser.profile}}{{else}}/ghost/img/user.jpg{{/if}}" alt="Avatar" />
|
|
<span class="name">{{#if currentUser.name}}{{currentUser.name}}{{else}}Ghost{{/if}} v{{version}}</span>
|
|
</a>
|
|
<ul class="overlay">
|
|
<li class="usermenu-profile"><a href="/ghost/settings/user">Your Profile</a></li>
|
|
<li class="divider"></li>
|
|
<li class="usermenu-help"><a href="http://forum.tryghost.org">Help / Support</a></li>
|
|
<li class="divider"></li>
|
|
<li class="usermenu-signout"><a href="/signout/">Sign Out</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|