2015-11-24 05:45:05 +08:00
|
|
|
<div class="search-area">
|
|
|
|
<p>{{i18n "admin.site_text.description"}}</p>
|
|
|
|
|
2022-08-26 07:22:04 +08:00
|
|
|
<TextField
|
|
|
|
@value={{this.q}}
|
|
|
|
@placeholderKey="admin.site_text.search"
|
|
|
|
@autofocus="true"
|
2023-09-14 18:27:09 +08:00
|
|
|
@key-up={{this.search}}
|
2023-12-12 20:09:05 +08:00
|
|
|
class="no-blur site-text-search"
|
2022-08-26 07:22:04 +08:00
|
|
|
/>
|
2015-12-01 04:22:58 +08:00
|
|
|
|
2019-03-19 04:09:13 +08:00
|
|
|
<div class="reseed">
|
2022-08-26 07:22:04 +08:00
|
|
|
<DButton
|
2023-09-14 18:27:09 +08:00
|
|
|
@action={{this.showReseedModal}}
|
2022-08-26 07:22:04 +08:00
|
|
|
@label="admin.reseed.action.label"
|
|
|
|
@title="admin.reseed.action.title"
|
|
|
|
@icon="sync"
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-default"
|
2022-08-26 07:22:04 +08:00
|
|
|
/>
|
2019-03-19 04:09:13 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="filter-options">
|
2021-01-19 01:53:45 +08:00
|
|
|
<div class="locale">
|
|
|
|
<label>{{i18n "admin.site_text.locale"}}</label>
|
2022-08-26 07:22:04 +08:00
|
|
|
<ComboBox
|
|
|
|
@valueProperty="value"
|
|
|
|
@content={{this.availableLocales}}
|
|
|
|
@value={{this.locale}}
|
2023-09-14 18:27:09 +08:00
|
|
|
@onChange={{this.updateLocale}}
|
2022-08-26 07:22:04 +08:00
|
|
|
@options={{hash filterable=true}}
|
2023-12-12 20:09:05 +08:00
|
|
|
class="locale-search"
|
2022-08-26 07:22:04 +08:00
|
|
|
/>
|
2021-01-19 01:53:45 +08:00
|
|
|
</div>
|
|
|
|
|
2024-02-16 00:27:51 +08:00
|
|
|
<label class="checkbox-label">
|
2023-09-14 18:27:09 +08:00
|
|
|
<input
|
2023-07-10 10:06:40 +08:00
|
|
|
id="toggle-overridden"
|
2023-09-14 18:27:09 +08:00
|
|
|
type="checkbox"
|
|
|
|
checked={{this.resolvedOverridden}}
|
|
|
|
{{on "click" this.toggleOverridden}}
|
2022-08-26 07:22:04 +08:00
|
|
|
/>
|
2019-02-21 22:54:54 +08:00
|
|
|
{{i18n "admin.site_text.show_overriden"}}
|
|
|
|
</label>
|
2023-07-10 10:06:40 +08:00
|
|
|
|
2024-02-16 00:27:51 +08:00
|
|
|
<label class="checkbox-label">
|
2023-09-14 18:27:09 +08:00
|
|
|
<input
|
2023-07-10 10:06:40 +08:00
|
|
|
id="toggle-outdated"
|
2023-09-14 18:27:09 +08:00
|
|
|
type="checkbox"
|
|
|
|
checked={{this.resolvedOutdated}}
|
2023-07-10 10:06:40 +08:00
|
|
|
{{on "click" this.toggleOutdated}}
|
|
|
|
/>
|
|
|
|
{{i18n "admin.site_text.show_outdated"}}
|
|
|
|
</label>
|
2019-03-19 04:09:13 +08:00
|
|
|
</p>
|
2015-11-24 05:45:05 +08:00
|
|
|
</div>
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.searching}}>
|
2023-09-14 18:27:09 +08:00
|
|
|
{{#if this.model.extras.recommended}}
|
2015-11-24 05:45:05 +08:00
|
|
|
<p><b>{{i18n "admin.site_text.recommended"}}</b></p>
|
2015-12-01 04:22:58 +08:00
|
|
|
{{/if}}
|
2015-11-24 05:45:05 +08:00
|
|
|
|
2023-09-14 18:27:09 +08:00
|
|
|
{{#each this.model as |siteText|}}
|
2022-08-26 07:22:04 +08:00
|
|
|
<SiteTextSummary
|
|
|
|
@siteText={{siteText}}
|
2023-09-14 18:27:09 +08:00
|
|
|
@editAction={{this.edit}}
|
2022-08-26 07:22:04 +08:00
|
|
|
@term={{this.q}}
|
2023-09-14 18:27:09 +08:00
|
|
|
@searchRegex={{this.model.extras.regex}}
|
2022-08-26 07:22:04 +08:00
|
|
|
/>
|
2023-09-14 18:27:09 +08:00
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.site_text.no_results"}}
|
2015-11-24 05:45:05 +08:00
|
|
|
{{/each}}
|
2019-03-09 05:13:10 +08:00
|
|
|
|
2023-09-14 18:27:09 +08:00
|
|
|
{{#if this.model.extras.has_more}}
|
2019-03-09 05:13:10 +08:00
|
|
|
<p class="warning">{{i18n "admin.site_text.more_than_50_results"}}</p>
|
|
|
|
{{/if}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</ConditionalLoadingSpinner>
|