mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 13:23:39 +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.
67 lines
1.9 KiB
Handlebars
67 lines
1.9 KiB
Handlebars
<span>
|
|
<PluginOutlet @name="admin-dashboard-top" @connectorTagName="div" />
|
|
</span>
|
|
|
|
<AdminPageHeader @hideTabs={{true}}>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin.dashboard.title"}} />
|
|
</:breadcrumbs>
|
|
</AdminPageHeader>
|
|
|
|
{{#if this.showVersionChecks}}
|
|
<div class="section-top">
|
|
<div class="version-checks">
|
|
<VersionChecks @versionCheck={{this.versionCheck}} @tagName="" />
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<DashboardProblems
|
|
@loadingProblems={{this.loadingProblems}}
|
|
@foundProblems={{this.foundProblems}}
|
|
@lowPriorityProblems={{this.lowPriorityProblems}}
|
|
@highPriorityProblems={{this.highPriorityProblems}}
|
|
@problemsTimestamp={{this.problemsTimestamp}}
|
|
@refreshProblems={{action "refreshProblems"}}
|
|
/>
|
|
<nav>
|
|
<ul class="nav nav-pills">
|
|
<li class="navigation-item general">
|
|
<LinkTo @route="admin.dashboard.general" class="navigation-link">
|
|
{{i18n "admin.dashboard.general_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
|
|
{{#if this.isModerationTabVisible}}
|
|
<li class="navigation-item moderation">
|
|
<LinkTo @route="admin.dashboardModeration" class="navigation-link">
|
|
{{i18n "admin.dashboard.moderation_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
|
|
{{#if this.isSecurityTabVisible}}
|
|
<li class="navigation-item security">
|
|
<LinkTo @route="admin.dashboardSecurity" class="navigation-link">
|
|
{{i18n "admin.dashboard.security_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
|
|
{{#if this.isReportsTabVisible}}
|
|
<li class="navigation-item reports">
|
|
<LinkTo @route="admin.dashboardReports" class="navigation-link">
|
|
{{i18n "admin.dashboard.reports_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
|
|
<PluginOutlet @name="admin-dashboard-tabs-after" />
|
|
</ul>
|
|
</nav>
|
|
|
|
{{outlet}}
|
|
|
|
<span>
|
|
<PluginOutlet @name="admin-dashboard-bottom" @connectorTagName="div" />
|
|
</span> |