Group admin stuff in Hamburger

This commit is contained in:
Robin Ward 2015-09-03 15:39:45 -04:00
parent ecf21cabe1
commit 0818a502f3

View File

@ -1,8 +1,7 @@
{{#menu-panel visible=visible}} {{#menu-panel visible=visible}}
<ul class="menu-links"> {{#if currentUser.staff}}
{{#if currentUser.staff}} <ul class="menu-links">
<li>{{d-link route="admin" class="admin-link" icon="wrench" label="admin_title"}}</li> <li>{{d-link route="admin" class="admin-link" icon="wrench" label="admin_title"}}</li>
<li> <li>
{{#d-link route="adminFlags" class="flagged-posts-link"}} {{#d-link route="adminFlags" class="flagged-posts-link"}}
{{fa-icon "flag"}} {{i18n 'flags_title'}} {{fa-icon "flag"}} {{i18n 'flags_title'}}
@ -11,26 +10,32 @@
{{/if}} {{/if}}
{{/d-link}} {{/d-link}}
</li> </li>
{{/if}}
{{#if currentUser.show_queued_posts}}
<li>
{{#d-link route='queued-posts'}}
{{i18n "queue.title"}}
{{#if currentUser.post_queue_new_count}}
<span class='badge-notification flagged-posts'>{{currentUser.post_queue_new_count}}</span>
{{/if}}
{{/d-link}}
</li>
{{/if}}
<li>{{d-link route="adminSiteSettings" icon="gear" label="admin.site_settings.title"}}</li>
{{plugin-outlet "hamburger-admin"}}
</ul>
<hr>
{{/if}}
<ul class="menu-links">
<li>{{d-link route="discovery.latest" class="latest-topics-link" label="filters.latest.title.zero"}}</li> <li>{{d-link route="discovery.latest" class="latest-topics-link" label="filters.latest.title.zero"}}</li>
{{#if siteSettings.enable_badges}} {{#if siteSettings.enable_badges}}
<li>{{d-link route="badges" class="badge-link" label="badges.title"}}</li> <li>{{d-link route="badges" class="badge-link" label="badges.title"}}</li>
{{/if}} {{/if}}
{{#if siteSettings.enable_user_directory}} {{#if siteSettings.enable_user_directory}}
<li>{{d-link route="users" class="user-directory-link" label="directory.title"}}</li> <li>{{d-link route="users" class="user-directory-link" label="directory.title"}}</li>
{{/if}}
{{#if currentUser.show_queued_posts}}
<li>
{{#d-link route='queued-posts'}}
{{i18n "queue.title"}}
{{#if currentUser.post_queue_new_count}}
<span class='badge-notification flagged-posts'>{{currentUser.post_queue_new_count}}</span>
{{/if}}
{{/d-link}}
</li>
{{/if}} {{/if}}
{{plugin-outlet "site-map-links"}} {{plugin-outlet "site-map-links"}}
@ -44,15 +49,16 @@
{{plugin-outlet "site-map-links-last"}} {{plugin-outlet "site-map-links-last"}}
</ul> </ul>
<hr> <hr>
{{#if categories}} {{#if categories}}
<ul class="category-links clearfix"> <ul class="category-links clearfix">
<li>{{d-link class="heading" <li class='heading'>
route="discovery.categories" {{d-link class="heading"
class="categories-link" route="discovery.categories"
label="filters.categories.title"}}</li> class="categories-link"
label="filters.categories.title"}}
</li>
{{#each categories as |c|}} {{#each categories as |c|}}
{{hamburger-category category=c}} {{hamburger-category category=c}}
{{/each}} {{/each}}