discourse/app/assets/javascripts/admin/templates/site-text-index.hbs
Gerhard Schlager 7c4d4331bc FEATURE: Better handling of quotation marks in site text search
It also matches 3 dots with the ellipsis symbol.
2018-11-12 13:26:41 +01:00

24 lines
752 B
Handlebars

<div class='search-area'>
<p>{{i18n "admin.site_text.description"}}</p>
{{text-field value=q
placeholderKey="admin.site_text.search"
class="no-blur site-text-search"
autofocus="true"
key-up="search"}}
<div class='extra-options'>
{{d-checkbox label="admin.site_text.show_overriden" checked=overridden change="search"}}
</div>
</div>
{{#conditional-loading-spinner condition=searching}}
{{#if siteTexts.extras.recommended}}
<p><b>{{i18n "admin.site_text.recommended"}}</b></p>
{{/if}}
{{#each siteTexts as |siteText|}}
{{site-text-summary siteText=siteText editAction="edit" term=q searchRegex=siteTexts.extras.regex}}
{{/each}}
{{/conditional-loading-spinner}}