mirror of
https://github.com/discourse/discourse.git
synced 2025-01-29 08:46:14 +08:00
Followup c2282439b3
Make the Search config page reached from the sidebar
use our consistent site setting page rules.
This commit is contained in:
parent
15a7a84d84
commit
17f4052068
|
@ -0,0 +1,3 @@
|
||||||
|
import AdminAreaSettingsBaseController from "admin/controllers/admin-area-settings-base";
|
||||||
|
|
||||||
|
export default class AdminConfigSearchSettingsController extends AdminAreaSettingsBaseController {}
|
|
@ -0,0 +1,8 @@
|
||||||
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
|
export default class AdminConfigSearchRoute extends DiscourseRoute {
|
||||||
|
titleToken() {
|
||||||
|
return i18n("admin.advanced.sidebar_link.search");
|
||||||
|
}
|
||||||
|
}
|
|
@ -231,6 +231,11 @@ export default function () {
|
||||||
path: "/",
|
path: "/",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
this.route("search", function () {
|
||||||
|
this.route("settings", {
|
||||||
|
path: "/",
|
||||||
|
});
|
||||||
|
});
|
||||||
this.route("legal", function () {
|
this.route("legal", function () {
|
||||||
this.route("settings", {
|
this.route("settings", {
|
||||||
path: "/",
|
path: "/",
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
<DPageHeader
|
||||||
|
@titleLabel={{i18n "admin.config.search.title"}}
|
||||||
|
@descriptionLabel={{i18n "admin.config.search.header_description"}}
|
||||||
|
>
|
||||||
|
<:breadcrumbs>
|
||||||
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
||||||
|
<DBreadcrumbsItem
|
||||||
|
@path="/admin/config/search"
|
||||||
|
@label={{i18n "admin.config.search.title"}}
|
||||||
|
/>
|
||||||
|
</:breadcrumbs>
|
||||||
|
</DPageHeader>
|
||||||
|
|
||||||
|
<div class="admin-config-page__main-area">
|
||||||
|
<AdminAreaSettings
|
||||||
|
@categories="search"
|
||||||
|
@path="/admin/config/search"
|
||||||
|
@filter={{this.filter}}
|
||||||
|
@adminSettingsFilterChangedCallback={{this.adminSettingsFilterChangedCallback}}
|
||||||
|
/>
|
||||||
|
</div>
|
|
@ -280,9 +280,7 @@ export const ADMIN_NAV_MAP = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "admin_search",
|
name: "admin_search",
|
||||||
route: "adminSiteSettingsCategory",
|
route: "adminConfig.search.settings",
|
||||||
routeModels: ["search"],
|
|
||||||
query: { filter: "" },
|
|
||||||
label: "admin.advanced.sidebar_link.search",
|
label: "admin.advanced.sidebar_link.search",
|
||||||
icon: "magnifying-glass",
|
icon: "magnifying-glass",
|
||||||
},
|
},
|
||||||
|
|
|
@ -5146,6 +5146,9 @@ en:
|
||||||
notifications:
|
notifications:
|
||||||
title: "Notifications"
|
title: "Notifications"
|
||||||
header_description: "Configure how notifications are managed and delivered for users, including email preferences, push notifications, mention limits, and notification consolidation."
|
header_description: "Configure how notifications are managed and delivered for users, including email preferences, push notifications, mention limits, and notification consolidation."
|
||||||
|
search:
|
||||||
|
title: "Search"
|
||||||
|
header_description: "Configure search settings including logging and tokenization for Chinese and Japanese languages."
|
||||||
legal:
|
legal:
|
||||||
title: "Legal"
|
title: "Legal"
|
||||||
header_description: "Configure legal settings, such as terms of service, privacy policy, contact details, and EU-specific considerations."
|
header_description: "Configure legal settings, such as terms of service, privacy policy, contact details, and EU-specific considerations."
|
||||||
|
|
|
@ -397,6 +397,7 @@ Discourse::Application.routes.draw do
|
||||||
get "login-and-authentication" => "site_settings#index"
|
get "login-and-authentication" => "site_settings#index"
|
||||||
get "logo" => "site_settings#index"
|
get "logo" => "site_settings#index"
|
||||||
get "notifications" => "site_settings#index"
|
get "notifications" => "site_settings#index"
|
||||||
|
get "search" => "site_settings#index"
|
||||||
get "legal" => "site_settings#index"
|
get "legal" => "site_settings#index"
|
||||||
get "trust-levels" => "site_settings#index"
|
get "trust-levels" => "site_settings#index"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user