A platform for community discussion. Free, open, simple.
UX: Use DPageHeader on the Components page (#30762)
Gary Pendergastdbc9fbfd8b30
diff --git a/app/assets/javascripts/admin/addon/templates/customize-themes.hbs b/app/assets/javascripts/admin/addon/templates/customize-themes.hbsindex cb304734f42..a2802b8f7b0 100644--- a/app/assets/javascripts/admin/addon/templates/customize-themes.hbs+++ b/app/assets/javascripts/admin/addon/templates/customize-themes.hbs@@ -1,17 +1,33 @@-<DPageHeader- @titleLabel={{i18n "admin.customize.theme.title"}}- @descriptionLabel={{i18n "admin.customize.theme.description"}}- @learnMoreUrl="https://meta.discourse.org/t/91966"- @hideTabs={{true}}->- <:breadcrumbs>- <DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />- <DBreadcrumbsItem- @path="/admin/customize/themes"- @label={{i18n "admin.customize.theme.title"}}- />- </:breadcrumbs>-</DPageHeader>+{{#if (eq this.currentTab "themes")}}+ <DPageHeader+ @titleLabel={{i18n "admin.customize.theme.title"}}+ @descriptionLabel={{i18n "admin.customize.theme.description"}}+ @learnMoreUrl="https://meta.discourse.org/t/91966"+ @hideTabs={{true}}+ >+ <:breadcrumbs>+ <DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />+ <DBreadcrumbsItem+ @path="/admin/customize/themes"+ @label={{i18n "admin.customize.theme.title"}}+ />+ </:breadcrumbs>+ </DPageHeader>+{{else}}+ <DPageHeader+ @titleLabel={{i18n "admin.customize.theme.components"}}+ @descriptionLabel={{i18n "admin.customize.theme.components_description"}}+ @hideTabs={{true}}+ >+ <:breadcrumbs>+ <DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />+ <DBreadcrumbsItem+ @path="/admin/customize/components"+ @label={{i18n "admin.customize.theme.components"}}+ />+ </:breadcrumbs>+ </DPageHeader>+{{/if}}<PluginOutlet @name="admin-customize-themes">{{#unless this.editingTheme}}diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex c8d705ddbac..fe059fe4929 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -6044,6 +6044,7 @@ en:customize_desc: "Customize:"title: "Themes"description: "Themes are expansive customizations that change multiple elements of the style of your forum design, and often also include additional front-end features."+ components_description: "Components are smaller customizations that can be added to themes in order to change specific elements of the style of your forum design."create: "Create"create_type: "Type"create_name: "Name"