mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 20:04:04 +08:00
Admin pages that are based off the customize or plugin templates were wrapped in the `admin-container` class, which has slightly different margins to the `admin-config-page` class, which is used on most admin pages. This change ensures that all the admin pages have the same alignment.
43 lines
No EOL
1.3 KiB
Handlebars
Vendored
43 lines
No EOL
1.3 KiB
Handlebars
Vendored
{{#if this.showTopNav}}
|
|
<div class="d-page-header">
|
|
<DBreadcrumbsContainer />
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/plugins"
|
|
@label={{i18n "admin.plugins.title"}}
|
|
/>
|
|
<div class="d-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>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="admin-config-page -no-header">
|
|
{{#each this.brokenAdminRoutes as |route|}}
|
|
<div class="alert alert-error">
|
|
{{i18n "admin.plugins.broken_route" name=(i18n route.label)}}
|
|
</div>
|
|
{{/each}}
|
|
|
|
{{outlet}}
|
|
</div> |