mirror of
https://github.com/discourse/discourse.git
synced 2025-03-14 10:33:43 +00:00
There are a number of minor changes in this commit : 1. Combine the "Themes" and "Components" links in the admin sidebar into a single tab labelled "Themes and components" 2. The combined tab links to the `/admin/config/customize/themes` page (titled as "Themes and components") 3. Add a new "Components" tab to the "Themes and components" page. There's already an existing "Themes" tab 4. Add a "back to" link at the top of individual theme/component page to navigate back to the respective tab in the "Themes and components" page 5. Remove the themes/components list/sidebar that currently serves for navigating between themes/components 6. Remove the header in the theme/component page Changes 4–6 apply only if the admin sidebar is enabled; they have no effect otherwise. Internal topic: t/146006.
28 lines
836 B
Handlebars
28 lines
836 B
Handlebars
<DPageHeader
|
|
@titleLabel={{i18n "admin.config_areas.themes_and_components.title"}}
|
|
@descriptionLabel={{i18n
|
|
"admin.config_areas.themes_and_components.description"
|
|
}}
|
|
@learnMoreUrl="https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966"
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
</:breadcrumbs>
|
|
|
|
<:tabs>
|
|
<NavItem
|
|
@route="adminConfig.customize.themes"
|
|
@label="admin.config_areas.themes_and_components.themes.title"
|
|
/>
|
|
<NavItem
|
|
@route="adminConfig.customize.components"
|
|
@label="admin.config_areas.themes_and_components.components.title"
|
|
/>
|
|
</:tabs>
|
|
</DPageHeader>
|
|
|
|
<div class="admin-container admin-config-page__main-area">
|
|
<PluginOutlet @name="admin-config-customize">
|
|
{{outlet}}
|
|
</PluginOutlet>
|
|
</div> |