Ghost/ghost/admin/app/templates/components/gh-mobile-nav-bar.hbs

10 lines
685 B
Handlebars
Raw Normal View History

{{#link-to "editor.new" "post" data-test-mobile-nav="new-post"}}{{svg-jar "pen"}}New post{{/link-to}}
{{#if (eq this.router.currentRouteName "posts")}}
{{#link-to "posts" (query-params type=null) classNames="active" data-test-mobile-nav="posts"}}{{svg-jar "content"}}Posts{{/link-to}}
2017-02-17 10:32:29 +03:00
{{else}}
{{#link-to "posts"}}{{svg-jar "content" data-test-mobile-nav="posts"}}Posts{{/link-to}}
2017-02-17 10:32:29 +03:00
{{/if}}
{{#link-to "staff" classNames="gh-nav-main-users" data-test-mobile-nav="staff"}}{{svg-jar "account-group"}}Staff{{/link-to}}
<div class="gh-mobile-nav-bar-more" {{action "openMobileMenu" target=this.ui data-test-mobile-nav="more"}}>{{svg-jar "icon" class="icon-gh"}}More</div>
2017-02-17 10:32:29 +03:00
{{yield}}