2021-05-27 12:42:43 -04:00
|
|
|
{{#if regexpError}}
|
|
|
|
<div class="alert alert-error">{{regexpError}}</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2021-03-09 04:52:12 -05:00
|
|
|
<div class="watched-word-controls">
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @class="btn-default download-link" @href={{downloadLink}} @icon="download" @label="admin.watched_words.download" />
|
|
|
|
|
|
|
|
<WatchedWordUploader @id="watched-word-uploader" @uploading={{uploading}} @actionKey={{actionNameKey}} @done={{action "uploadComplete"}} />
|
|
|
|
|
|
|
|
<DButton @class="watched-word-test" @label="admin.watched_words.test.button_label" @icon="far-eye" @action={{action "test"}} />
|
|
|
|
|
|
|
|
<DButton @class="btn-danger clear-all" @label="admin.watched_words.clear_all" @icon="trash-alt" @action={{action "clearAll"}} />
|
2018-07-02 23:14:53 -04:00
|
|
|
</div>
|
2019-07-22 07:59:56 -04:00
|
|
|
|
2021-02-25 07:00:58 -05:00
|
|
|
<p class="about">{{actionDescription}}</p>
|
|
|
|
|
2021-06-25 05:08:52 -04:00
|
|
|
{{#if siteSettings.watched_words_regular_expressions}}
|
|
|
|
<p>{{html-safe (i18n "admin.watched_words.regex_warning" basePath=(base-path))}}</p>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-06-30 06:30:50 -04:00
|
|
|
<WatchedWordForm @actionKey={{actionNameKey}} @action={{action "recordAdded"}} @filteredContent={{currentAction.words}} />
|
2021-02-25 07:00:58 -05:00
|
|
|
|
2021-05-27 12:20:26 -04:00
|
|
|
{{#if currentAction.words}}
|
2018-02-26 16:35:43 -05:00
|
|
|
<label class="show-words-checkbox">
|
2022-06-30 06:30:50 -04:00
|
|
|
<Input @type="checkbox" @checked={{adminWatchedWords.showWords}} @disabled={{adminWatchedWords.disableShowWords}} />
|
2021-05-27 12:20:26 -04:00
|
|
|
{{i18n "admin.watched_words.show_words" count=currentAction.words.length}}
|
2018-02-26 16:35:43 -05:00
|
|
|
</label>
|
2021-02-25 07:00:58 -05:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showWordsList}}
|
2021-06-02 01:36:49 -04:00
|
|
|
<div class="watched-words-list watched-words-{{actionNameKey}}">
|
2021-05-27 12:20:26 -04:00
|
|
|
{{#each currentAction.words as |word| }}
|
2022-07-04 12:01:01 -04:00
|
|
|
<div class="watched-word-box"><AdminWatchedWord @actionKey={{actionNameKey}} @word={{word}} @action={{action "recordRemoved"}}/></div>
|
2017-06-28 16:56:44 -04:00
|
|
|
{{/each}}
|
2021-02-25 07:00:58 -05:00
|
|
|
</div>
|
|
|
|
{{/if}}
|