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"
|
|
|
|
@class="no-blur site-text-search"
|
|
|
|
@autofocus="true"
|
|
|
|
@key-up={{action "search"}}
|
|
|
|
/>
|
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
|
|
|
|
@action={{route-action "showReseedModal"}}
|
|
|
|
@class="btn-default"
|
|
|
|
@label="admin.reseed.action.label"
|
|
|
|
@title="admin.reseed.action.title"
|
|
|
|
@icon="sync"
|
|
|
|
/>
|
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}}
|
|
|
|
@onChange={{action "updateLocale"}}
|
|
|
|
@class="locale-search"
|
|
|
|
@options={{hash filterable=true}}
|
|
|
|
/>
|
2021-01-19 01:53:45 +08:00
|
|
|
</div>
|
|
|
|
|
2019-02-21 22:54:54 +08:00
|
|
|
<label>
|
2022-08-26 07:22:04 +08:00
|
|
|
<Input
|
2023-07-10 10:06:40 +08:00
|
|
|
id="toggle-overridden"
|
2022-08-26 07:22:04 +08:00
|
|
|
@type="checkbox"
|
|
|
|
@checked={{this.overridden}}
|
|
|
|
{{on "click" (action "toggleOverridden")}}
|
|
|
|
/>
|
2019-02-21 22:54:54 +08:00
|
|
|
{{i18n "admin.site_text.show_overriden"}}
|
|
|
|
</label>
|
2023-07-10 10:06:40 +08:00
|
|
|
|
|
|
|
<label>
|
|
|
|
<Input
|
|
|
|
id="toggle-outdated"
|
|
|
|
@type="checkbox"
|
|
|
|
@checked={{this.outdated}}
|
|
|
|
{{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}}>
|
|
|
|
{{#if this.siteTexts.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
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#each this.siteTexts as |siteText|}}
|
2022-08-26 07:22:04 +08:00
|
|
|
<SiteTextSummary
|
|
|
|
@siteText={{siteText}}
|
|
|
|
@editAction={{action "edit"}}
|
|
|
|
@term={{this.q}}
|
|
|
|
@searchRegex={{this.siteTexts.extras.regex}}
|
|
|
|
/>
|
2015-11-24 05:45:05 +08:00
|
|
|
{{/each}}
|
2019-03-09 05:13:10 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.siteTexts.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>
|