discourse/app/assets/javascripts/admin/addon/templates/whats-new.hbs
Martin Brennan a879bcdc35
DEV: Introduce <DPageHeader /> and <DPageSubheader /> components (#30146)
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
2024-12-18 08:13:39 +10:00

26 lines
831 B
Handlebars

<DPageHeader
@titleLabel={{i18n "admin.dashboard.new_features.title"}}
@descriptionLabel={{i18n "admin.dashboard.new_features.subtitle"}}
@learnMoreUrl="https://meta.discourse.org/tags/c/announcements/67/release-notes"
@hideTabs={{true}}
>
<:breadcrumbs>
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
<DBreadcrumbsItem
@path="/admin/whats-new"
@label={{i18n "admin.dashboard.new_features.title"}}
/>
</:breadcrumbs>
<:actions as |actions|>
<actions.Primary
@label="admin.new_features.check_for_updates"
@action={{this.checkForUpdates}}
/>
</:actions>
</DPageHeader>
<div class="admin-container admin-config-page__main-area">
<div class="admin-config-area">
<DashboardNewFeatures @onCheckForFeatures={{this.bindCheckFeatures}} />
</div>
</div>