2024-03-21 11:42:06 +08:00
|
|
|
{{#if this.showTopNav}}
|
2024-08-30 12:53:36 +08:00
|
|
|
<div class="admin-page-header">
|
|
|
|
<DBreadcrumbsContainer />
|
|
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
|
|
<DBreadcrumbsItem
|
|
|
|
@path="/admin/plugins"
|
|
|
|
@label={{i18n "admin.plugins.title"}}
|
|
|
|
/>
|
|
|
|
<div class="admin-nav-submenu">
|
|
|
|
<HorizontalOverflowNav class="main-nav nav plugin-nav">
|
|
|
|
<NavItem @route="adminPlugins.index" @label="admin.plugins.title" />
|
|
|
|
{{#each this.adminRoutes as |route|}}
|
|
|
|
{{#if route.use_new_show_route}}
|
|
|
|
<NavItem
|
|
|
|
@route={{route.full_location}}
|
|
|
|
@label={{route.label}}
|
|
|
|
@routeParam={{route.location}}
|
|
|
|
@class="admin-plugin-tab-nav-item"
|
|
|
|
data-plugin-nav-tab-id={{route.plugin_id}}
|
|
|
|
/>
|
|
|
|
{{else}}
|
|
|
|
<NavItem
|
|
|
|
@route={{route.full_location}}
|
|
|
|
@label={{route.label}}
|
|
|
|
@class="admin-plugin-tab-nav-item"
|
|
|
|
data-plugin-nav-tab-id={{route.plugin_id}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
</HorizontalOverflowNav>
|
|
|
|
</div>
|
2024-03-21 11:42:06 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2015-02-07 06:32:59 +08:00
|
|
|
|
2024-08-30 12:53:36 +08:00
|
|
|
<div class="admin-container -no-header">
|
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>
|