mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
db527d27f3
refs #11863 * 🐛 Fixed accessible button label for showing and hiding custom post types. * 🐛 Made the menu separators accessible. * 🐛 Fixed the More item to be a button for assistive technologies.
10 lines
709 B
Handlebars
10 lines
709 B
Handlebars
<LinkTo @route="editor.new" @model="post" data-test-mobile-nav="new-post">{{svg-jar "pen"}}New post</LinkTo>
|
|
{{#if (eq this.router.currentRouteName "posts")}}
|
|
<LinkTo @route="posts" @query={{hash type=null}} @classNames="active" data-test-mobile-nav="posts">{{svg-jar "content"}}Posts</LinkTo>
|
|
{{else}}
|
|
<LinkTo @route="posts">{{svg-jar "content" data-test-mobile-nav="posts"}}Posts</LinkTo>
|
|
{{/if}}
|
|
<LinkTo @route="staff" @classNames="gh-nav-main-users" data-test-mobile-nav="staff">{{svg-jar "account-group"}}Staff</LinkTo>
|
|
<div role="button" class="gh-mobile-nav-bar-more" {{action "openMobileMenu" target=this.ui data-test-mobile-nav="more"}}>{{svg-jar "icon" class="icon-gh"}}More</div>
|
|
{{yield}}
|