discourse/app/assets/javascripts/admin/addon/templates/site-text-index.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.8 KiB
Handlebars
Raw Normal View History

<div class="search-area">
<p>{{i18n "admin.site_text.description"}}</p>
<TextField
@value={{this.q}}
@placeholderKey="admin.site_text.search"
@class="no-blur site-text-search"
@autofocus="true"
@key-up={{action "search"}}
/>
<div class="reseed">
<DButton
@action={{route-action "showReseedModal"}}
@label="admin.reseed.action.label"
@title="admin.reseed.action.title"
@icon="sync"
class="btn-default"
/>
</div>
<p class="filter-options">
<div class="locale">
<label>{{i18n "admin.site_text.locale"}}</label>
<ComboBox
@valueProperty="value"
@content={{this.availableLocales}}
@value={{this.locale}}
@onChange={{action "updateLocale"}}
@class="locale-search"
@options={{hash filterable=true}}
/>
</div>
<label>
<Input
id="toggle-overridden"
@type="checkbox"
@checked={{this.overridden}}
{{on "click" (action "toggleOverridden")}}
/>
{{i18n "admin.site_text.show_overriden"}}
</label>
<label>
<Input
id="toggle-outdated"
@type="checkbox"
@checked={{this.outdated}}
{{on "click" this.toggleOutdated}}
/>
{{i18n "admin.site_text.show_outdated"}}
</label>
</p>
</div>
<ConditionalLoadingSpinner @condition={{this.searching}}>
{{#if this.siteTexts.extras.recommended}}
<p><b>{{i18n "admin.site_text.recommended"}}</b></p>
{{/if}}
{{#each this.siteTexts as |siteText|}}
<SiteTextSummary
@siteText={{siteText}}
@editAction={{action "edit"}}
@term={{this.q}}
@searchRegex={{this.siteTexts.extras.regex}}
/>
{{/each}}
{{#if this.siteTexts.extras.has_more}}
<p class="warning">{{i18n "admin.site_text.more_than_50_results"}}</p>
{{/if}}
</ConditionalLoadingSpinner>