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">
|
|
|
|
{{d-button
|
|
|
|
class="btn-default download-link"
|
|
|
|
href=downloadLink
|
|
|
|
icon="download"
|
|
|
|
label="admin.watched_words.download"}}
|
|
|
|
|
2021-11-11 00:38:39 -05:00
|
|
|
{{watched-word-uploader
|
|
|
|
id="watched-word-uploader"
|
|
|
|
uploading=uploading
|
|
|
|
actionKey=actionNameKey
|
|
|
|
done=(action "uploadComplete")}}
|
2021-03-09 04:52:12 -05:00
|
|
|
|
|
|
|
{{d-button
|
2021-05-21 10:50:24 -04:00
|
|
|
class="watched-word-test"
|
2021-03-09 04:52:12 -05:00
|
|
|
label="admin.watched_words.test.button_label"
|
|
|
|
icon="far-eye"
|
|
|
|
action=(action "test")}}
|
|
|
|
|
|
|
|
{{d-button
|
|
|
|
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}}
|
|
|
|
|
2021-02-25 07:00:58 -05:00
|
|
|
{{watched-word-form
|
|
|
|
actionKey=actionNameKey
|
|
|
|
action=(action "recordAdded")
|
2021-05-27 12:20:26 -04:00
|
|
|
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">
|
|
|
|
{{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| }}
|
2021-05-21 10:50:24 -04:00
|
|
|
<div class="watched-word-box">{{admin-watched-word 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}}
|