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}}
<ul class="menu-links">
{{#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="adminFlags" class="flagged-posts-link"}}
{{fa-icon "flag"}} {{i18n 'flags_title'}}
@ -11,16 +10,6 @@
{{/if}}
{{/d-link}}
</li>
{{/if}}
<li>{{d-link route="discovery.latest" class="latest-topics-link" label="filters.latest.title.zero"}}</li>
{{#if siteSettings.enable_badges}}
<li>{{d-link route="badges" class="badge-link" label="badges.title"}}</li>
{{/if}}
{{#if siteSettings.enable_user_directory}}
<li>{{d-link route="users" class="user-directory-link" label="directory.title"}}</li>
{{/if}}
{{#if currentUser.show_queued_posts}}
<li>
@ -32,6 +21,22 @@
{{/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>
{{#if siteSettings.enable_badges}}
<li>{{d-link route="badges" class="badge-link" label="badges.title"}}</li>
{{/if}}
{{#if siteSettings.enable_user_directory}}
<li>{{d-link route="users" class="user-directory-link" label="directory.title"}}</li>
{{/if}}
{{plugin-outlet "site-map-links"}}
@ -44,15 +49,16 @@
{{plugin-outlet "site-map-links-last"}}
</ul>
<hr>
{{#if categories}}
<ul class="category-links clearfix">
<li>{{d-link class="heading"
<li class='heading'>
{{d-link class="heading"
route="discovery.categories"
class="categories-link"
label="filters.categories.title"}}</li>
label="filters.categories.title"}}
</li>
{{#each categories as |c|}}
{{hamburger-category category=c}}
{{/each}}