DEV: Add new admin UI header to site texts page (#30689)

This adds the new admin UI header to the site texts page.
This commit is contained in:
Ted Johansson 2025-01-10 13:19:14 +08:00 committed by GitHub
parent 8719235cfd
commit 4a78999b6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 22 additions and 6 deletions

View File

@ -1,6 +1,4 @@
<div class="search-area"> <div class="search-area">
<p>{{i18n "admin.site_text.description"}}</p>
<TextField <TextField
@value={{this.q}} @value={{this.q}}
@placeholderKey="admin.site_text.search" @placeholderKey="admin.site_text.search"

View File

@ -1,3 +1,17 @@
<DPageHeader
@titleLabel={{i18n "admin.site_text.title"}}
@descriptionLabel={{i18n "admin.site_text.description"}}
@hideTabs={{true}}
>
<:breadcrumbs>
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
<DBreadcrumbsItem
@path="/admin/customize/site_texts"
@label={{i18n "admin.site_text.title"}}
/>
</:breadcrumbs>
</DPageHeader>
<div class="row site-texts"> <div class="row site-texts">
{{outlet}} {{outlet}}
</div> </div>

View File

@ -72,6 +72,7 @@
} }
.admin-customize { .admin-customize {
/* TODO: Remove when admin header has been added to all /customize pages */
h1 { h1 {
margin-bottom: 10px; margin-bottom: 10px;
input { input {
@ -81,6 +82,9 @@
font-size: var(--font-down-2); font-size: var(--font-down-2);
} }
} }
&.d-page-header__title {
margin: 0;
}
} }
.field-error, .field-error,

View File

@ -7149,10 +7149,10 @@ en:
multiselect: "Multiselect" multiselect: "Multiselect"
site_text: site_text:
description: "You can customize any of the text on your forum. Please start by searching below:" description: "You can customize any of the text on your forum."
search: "Search for the text you'd like to edit" search: "Search for the text you'd like to edit"
title: "Text" title: "Site texts"
edit: "edit" edit: "Edit"
revert: "Revert Changes" revert: "Revert Changes"
revert_confirm: "Are you sure you want to revert your changes?" revert_confirm: "Are you sure you want to revert your changes?"
go_back: "Back to Search" go_back: "Back to Search"
@ -7476,7 +7476,7 @@ en:
reseed: reseed:
action: action:
label: "Replace Text…" label: "Replace text …"
title: "Replace text of categories and topics with translations" title: "Replace text of categories and topics with translations"
modal: modal: