2018-07-02 23:14:53 -04:00
|
|
|
<div class="admin-controls">
|
|
|
|
<div class="controls">
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @action={{action "toggleMenu"}} @class="menu-toggle" @icon="bars" />
|
2018-07-02 23:14:53 -04:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.currentUser.admin}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @label="admin.plugins.change_settings" @icon="cog" @class="btn-default settings-button" @action={{route-action "showSettings"}} />
|
2018-07-02 23:14:53 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2020-04-13 11:17:20 -04:00
|
|
|
</div>
|
2018-07-02 23:14:53 -04:00
|
|
|
|
2015-02-06 17:32:59 -05:00
|
|
|
<div class="admin-nav pull-left">
|
|
|
|
<ul class="nav nav-stacked">
|
2022-06-30 06:30:50 -04:00
|
|
|
<NavItem @route="adminPlugins.index" @label="admin.plugins.title" />
|
2015-02-06 17:32:59 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.adminRoutes as |route|}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<NavItem @route={{route.full_location}} @label={{route.label}} />
|
2015-02-06 17:32:59 -05:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2018-07-02 23:14:53 -04:00
|
|
|
<div class="admin-detail pull-left mobile-closed">
|
2022-11-07 11:39:27 -05:00
|
|
|
{{#each this.brokenAdminRoutes as |route|}}
|
|
|
|
<div class="alert alert-error">
|
|
|
|
{{i18n "admin.plugins.broken_route" name=(i18n route.label)}}
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
|
2015-02-06 17:32:59 -05:00
|
|
|
{{outlet}}
|
|
|
|
</div>
|