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">
<p>{{i18n "admin.site_text.description"}}</p>
<TextField
@value={{this.q}}
@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">
{{outlet}}
</div>

View File

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

View File

@ -7149,10 +7149,10 @@ en:
multiselect: "Multiselect"
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"
title: "Text"
edit: "edit"
title: "Site texts"
edit: "Edit"
revert: "Revert Changes"
revert_confirm: "Are you sure you want to revert your changes?"
go_back: "Back to Search"
@ -7476,7 +7476,7 @@ en:
reseed:
action:
label: "Replace Text…"
label: "Replace text …"
title: "Replace text of categories and topics with translations"
modal: