mirror of
https://github.com/discourse/discourse.git
synced 2025-01-10 02:05:48 +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
42 lines
1.3 KiB
Handlebars
42 lines
1.3 KiB
Handlebars
<div class="admin-backups admin-config-page">
|
|
<DPageHeader
|
|
@titleLabel={{i18n "admin.backups.title"}}
|
|
@descriptionLabel={{i18n "admin.backups.description"}}
|
|
@learnMoreUrl="https://meta.discourse.org/t/create-download-and-restore-a-backup-of-your-discourse-database/122710"
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/backups"
|
|
@label={{i18n "admin.backups.title"}}
|
|
/>
|
|
</:breadcrumbs>
|
|
<:actions as |actions|>
|
|
<AdminBackupsActions @actions={{actions}} @backups={{@model}} />
|
|
</:actions>
|
|
<:tabs>
|
|
<NavItem
|
|
@route="admin.backups.settings"
|
|
@label="settings"
|
|
class="admin-backups-tabs__settings"
|
|
/>
|
|
<NavItem
|
|
@route="admin.backups.index"
|
|
@label="admin.backups.menu.backup_files"
|
|
class="admin-backups-tabs__files"
|
|
/>
|
|
<NavItem
|
|
@route="admin.backups.logs"
|
|
@label="admin.backups.menu.logs"
|
|
class="admin-backups-tabs__logs"
|
|
/>
|
|
<PluginOutlet @name="downloader" @connectorTagName="div" />
|
|
</:tabs>
|
|
</DPageHeader>
|
|
|
|
<PluginOutlet @name="before-backup-list" @connectorTagName="div" />
|
|
|
|
<div class="admin-container admin-config-page__main-area">
|
|
{{outlet}}
|
|
</div>
|
|
</div> |