mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
526501fdf7
Removes that hash appended to the URL when clicking Meta Data in post settings. Closes #4386 When clicking 'Meta Data' the click event appends a # to the URL. I replaced the a with a button element so that won't happen anymore. The button has a type attribute because it will try and submit the form without it. Added text-align: left to the navlist button because the button centers it's content by default.
57 lines
2.6 KiB
Handlebars
57 lines
2.6 KiB
Handlebars
<nav class="global-nav" role="navigation">
|
|
|
|
<a class="nav-item ghost-logo" href="{{gh-path 'blog'}}" title="Visit blog">
|
|
<div class="nav-label"><i class="icon-ghost"></i> <span>Visit blog</span> </div>
|
|
</a>
|
|
|
|
{{#link-to "posts" classNames="nav-item nav-content js-nav-item"}}
|
|
<div class="nav-label"><i class="icon-content"></i> Content</div>
|
|
{{/link-to}}
|
|
|
|
{{#link-to "editor.new" classNames="nav-item nav-new js-nav-item"}}
|
|
<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 js-nav-item"}}
|
|
<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">
|
|
{{#gh-dropdown-button dropdownName="user-menu" tagName="div" classNames="nav-label clearfix"}}
|
|
{{#if session.user.image}}
|
|
<div class="image"><img {{bind-attr src=session.user.image alt=userImageAlt}} /></div>
|
|
{{else}}
|
|
<div class="image"><img src="{{gh-path "blog" "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-dropdown-button}}
|
|
{{#gh-dropdown tagName="div" classNames="dropdown" name="user-menu" closeOnClick="true"}}
|
|
<ul class="dropdown-menu dropdown-triangle-top-right js-user-menu-dropdown-menu" role="menu">
|
|
<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>
|
|
<li role="presentation"><a class="dropdown-item user-menu-support" role="menuitem" tabindex="-1" href="http://support.ghost.org/"><i class="icon-support"></i> Help / Support</a></li>
|
|
<li class="divider"></li>
|
|
<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>
|
|
</ul>
|
|
{{/gh-dropdown}}
|
|
</div>{{! .user-menu }}
|
|
|
|
</nav>{{! .global-nav }}
|
|
|
|
<div class="nav-cover js-nav-cover"></div>
|