2018-07-03 11:14:53 +08:00
|
|
|
<div class="admin-controls">
|
2023-02-17 23:21:30 +08:00
|
|
|
<HorizontalOverflowNav @className="main-nav nav plugin-nav">
|
2022-06-30 18:30:50 +08:00
|
|
|
<NavItem @route="adminPlugins.index" @label="admin.plugins.title" />
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#each this.adminRoutes as |route|}}
|
2022-06-30 18:30:50 +08:00
|
|
|
<NavItem @route={{route.full_location}} @label={{route.label}} />
|
2015-02-07 06:32:59 +08:00
|
|
|
{{/each}}
|
2023-02-17 23:21:30 +08:00
|
|
|
{{#if this.currentUser.admin}}
|
|
|
|
<NavItem
|
|
|
|
@route="adminSiteSettingsCategory"
|
|
|
|
@label="admin.plugins.change_settings"
|
|
|
|
@routeParam="plugins"
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
</HorizontalOverflowNav>
|
2015-02-07 06:32:59 +08:00
|
|
|
</div>
|
|
|
|
|
2023-02-17 23:21:30 +08:00
|
|
|
<div class="admin-container">
|
2022-11-08 00:39:27 +08:00
|
|
|
{{#each this.brokenAdminRoutes as |route|}}
|
|
|
|
<div class="alert alert-error">
|
|
|
|
{{i18n "admin.plugins.broken_route" name=(i18n route.label)}}
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
|
2015-02-07 06:32:59 +08:00
|
|
|
{{outlet}}
|
|
|
|
</div>
|