mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 14:15:48 +08:00
1446596089
This commit converts the Backups page in the admin interface to follow our new admin interface guidelines. As part of this work, I've also made `AdminPageHeader` and `AdminPageSubheader` components that can be reused on any admin page for consistency, that handle the title and action buttons and also breadcrumbs. Also renamed `AdminPluginFilteredSiteSettings` to `AdminFilteredSiteSettings` since it can be used generally to show a subset of filtered site settings, not only settings for a plugin. Not sure if it's ideal to have to define a new route for this for every config area, but not sure how else to do it right now.
42 lines
1.2 KiB
Handlebars
42 lines
1.2 KiB
Handlebars
<div class="admin-backups admin-config-page">
|
|
|
|
<AdminPageHeader
|
|
@titleLabel="admin.backups.title"
|
|
@descriptionLabel="admin.backups.description"
|
|
@learnMoreUrl="https://meta.discourse.org/t/create-download-and-restore-a-backup-of-your-discourse-database/122710"
|
|
>
|
|
<:breadcrumbs>
|
|
<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>
|
|
</AdminPageHeader>
|
|
|
|
<PluginOutlet @name="before-backup-list" @connectorTagName="div" />
|
|
|
|
<div class="admin-container admin-config-page__main-area">
|
|
{{outlet}}
|
|
</div>
|
|
</div> |