2021-05-27 19:42:43 +03:00
|
|
|
{{#if regexpError}}
|
|
|
|
|
<div class="alert alert-error">{{regexpError}}</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2021-03-09 11:52:12 +02:00
|
|
|
<div class="watched-word-controls">
|
2022-06-30 12:30:50 +02: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-03 11:14:53 +08:00
|
|
|
</div>
|
2019-07-22 14:59:56 +03:00
|
|
|
|
2021-02-25 14:00:58 +02:00
|
|
|
<p class="about">{{actionDescription}}</p>
|
|
|
|
|
|
2021-06-25 12:08:52 +03:00
|
|
|
{{#if siteSettings.watched_words_regular_expressions}}
|
|
|
|
|
<p>{{html-safe (i18n "admin.watched_words.regex_warning" basePath=(base-path))}}</p>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2022-06-30 12:30:50 +02:00
|
|
|
<WatchedWordForm @actionKey={{actionNameKey}} @action={{action "recordAdded"}} @filteredContent={{currentAction.words}} />
|
2021-02-25 14:00:58 +02:00
|
|
|
|
2021-05-27 19:20:26 +03:00
|
|
|
{{#if currentAction.words}}
|
2018-02-26 16:35:43 -05:00
|
|
|
<label class="show-words-checkbox">
|
2022-06-30 12:30:50 +02:00
|
|
|
<Input @type="checkbox" @checked={{adminWatchedWords.showWords}} @disabled={{adminWatchedWords.disableShowWords}} />
|
2021-05-27 19:20:26 +03:00
|
|
|
{{i18n "admin.watched_words.show_words" count=currentAction.words.length}}
|
2018-02-26 16:35:43 -05:00
|
|
|
</label>
|
2021-02-25 14:00:58 +02:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if showWordsList}}
|
2021-06-02 08:36:49 +03:00
|
|
|
<div class="watched-words-list watched-words-{{actionNameKey}}">
|
2021-05-27 19:20:26 +03:00
|
|
|
{{#each currentAction.words as |word| }}
|
2022-07-04 17:01:01 +01: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 14:00:58 +02:00
|
|
|
</div>
|
|
|
|
|
{{/if}}
|