mirror of
https://github.com/discourse/discourse.git
synced 2025-01-11 00:17:30 +08:00
a879bcdc35
This converts the `<AdminPageHeader />` component and the `<AdminPageSubheader />` components into new components that can be used outside of admin, and updates the CSS classes. Also introduces a `<DPageActionButton />` component and child components for the header action buttons. I have to keep the old admin-only components around for now until plugins are updated, then we can remove it, and remove the re-exports that are done within admin-page-action-button.gjs
34 lines
947 B
Handlebars
34 lines
947 B
Handlebars
<div class="admin-emojis admin-config-page">
|
|
<DPageHeader
|
|
@titleLabel={{i18n "admin.emoji.title"}}
|
|
@descriptionLabel={{i18n "admin.emoji.description"}}
|
|
@hideTabs={{this.hideTabs}}
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/customize/emojis"
|
|
@label={{i18n "admin.emoji.title"}}
|
|
/>
|
|
</:breadcrumbs>
|
|
<:actions as |actions|>
|
|
<actions.Primary @route="adminEmojis.new" @label="admin.emoji.add" />
|
|
</:actions>
|
|
<:tabs>
|
|
<NavItem
|
|
@route="adminEmojis.settings"
|
|
@label="settings"
|
|
class="admin-emojis-tabs__settings"
|
|
/>
|
|
<NavItem
|
|
@route="adminEmojis.index"
|
|
@label="admin.emoji.title"
|
|
class="admin-emojis-tabs__emoji"
|
|
/>
|
|
</:tabs>
|
|
</DPageHeader>
|
|
|
|
<div class="admin-container admin-config-page__main-area">
|
|
{{outlet}}
|
|
</div>
|
|
</div> |