mirror of
https://github.com/discourse/discourse.git
synced 2025-01-17 04:02:46 +08:00
8185770d63
Followup c2282439b3
Make the Files and Other config pages reached from the sidebar
use our consistent site setting page rules.
Also slightly improves AdminAreaSettings so we don't show
"Settings not found" when still loading settings.
30 lines
1013 B
Plaintext
30 lines
1013 B
Plaintext
import RouteTemplate from "ember-route-template";
|
|
import DBreadcrumbsItem from "discourse/components/d-breadcrumbs-item";
|
|
import DPageHeader from "discourse/components/d-page-header";
|
|
import { i18n } from "discourse-i18n";
|
|
import AdminAreaSettings from "admin/components/admin-area-settings";
|
|
|
|
export default RouteTemplate(<template>
|
|
<DPageHeader
|
|
@titleLabel={{i18n "admin.config.files.title"}}
|
|
@descriptionLabel={{i18n "admin.config.files.header_description"}}
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/config/files"
|
|
@label={{i18n "admin.config.files.title"}}
|
|
/>
|
|
</:breadcrumbs>
|
|
</DPageHeader>
|
|
|
|
<div class="admin-config-page__main-area">
|
|
<AdminAreaSettings
|
|
@categories="files"
|
|
@path="/admin/config/files"
|
|
@filter={{@controller.filter}}
|
|
@adminSettingsFilterChangedCallback={{@controller.adminSettingsFilterChangedCallback}}
|
|
/>
|
|
</div>
|
|
</template>);
|