mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 23:52:44 +08:00
d9d1da82cb
Create a basic config page that only contains security-related settings, to replace the "security" category view linked to from "Security settings" in the admin sidebar.
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
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.security.title"}}
|
|
@descriptionLabel={{i18n "admin.config.security.header_description"}}
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/config/security"
|
|
@label={{i18n "admin.config.security.title"}}
|
|
/>
|
|
</:breadcrumbs>
|
|
</DPageHeader>
|
|
|
|
<div class="admin-config-page__main-area">
|
|
<AdminAreaSettings
|
|
@categories="security"
|
|
@path="/admin/config/security"
|
|
@filter={{@controller.filter}}
|
|
@adminSettingsFilterChangedCallback={{@controller.adminSettingsFilterChangedCallback}}
|
|
/>
|
|
</div>
|
|
</template>);
|