2021-05-28 00:42:43 +08:00
|
|
|
{{#if regexpError}}
|
|
|
|
<div class="alert alert-error">{{regexpError}}</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2021-03-09 17:52:12 +08:00
|
|
|
<div class="watched-word-controls">
|
|
|
|
{{d-button
|
|
|
|
class="btn-default download-link"
|
|
|
|
href=downloadLink
|
|
|
|
icon="download"
|
|
|
|
label="admin.watched_words.download"}}
|
|
|
|
|
|
|
|
{{watched-word-uploader uploading=uploading actionKey=actionNameKey done=(action "uploadComplete")}}
|
|
|
|
|
|
|
|
{{d-button
|
2021-05-21 22:50:24 +08:00
|
|
|
class="watched-word-test"
|
2021-03-09 17:52:12 +08: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-03 11:14:53 +08:00
|
|
|
</div>
|
2019-07-22 19:59:56 +08:00
|
|
|
|
2021-02-25 20:00:58 +08:00
|
|
|
<p class="about">{{actionDescription}}</p>
|
|
|
|
|
2021-06-25 17:08:52 +08:00
|
|
|
{{#if siteSettings.watched_words_regular_expressions}}
|
|
|
|
<p>{{html-safe (i18n "admin.watched_words.regex_warning" basePath=(base-path))}}</p>
|
|
|
|
{{/if}}
|
|
|
|
|
2021-02-25 20:00:58 +08:00
|
|
|
{{watched-word-form
|
|
|
|
actionKey=actionNameKey
|
|
|
|
action=(action "recordAdded")
|
2021-05-28 00:20:26 +08:00
|
|
|
filteredContent=currentAction.words
|
|
|
|
}}
|
2021-02-25 20:00:58 +08:00
|
|
|
|
2021-05-28 00:20:26 +08:00
|
|
|
{{#if currentAction.words}}
|
2018-02-27 05:35:43 +08:00
|
|
|
<label class="show-words-checkbox">
|
|
|
|
{{input type="checkbox" checked=adminWatchedWords.showWords disabled=adminWatchedWords.disableShowWords}}
|
2021-05-28 00:20:26 +08:00
|
|
|
{{i18n "admin.watched_words.show_words" count=currentAction.words.length}}
|
2018-02-27 05:35:43 +08:00
|
|
|
</label>
|
2021-02-25 20:00:58 +08:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showWordsList}}
|
2021-06-02 13:36:49 +08:00
|
|
|
<div class="watched-words-list watched-words-{{actionNameKey}}">
|
2021-05-28 00:20:26 +08:00
|
|
|
{{#each currentAction.words as |word| }}
|
2021-05-21 22:50:24 +08:00
|
|
|
<div class="watched-word-box">{{admin-watched-word actionKey=actionNameKey word=word action=(action "recordRemoved")}}</div>
|
2017-06-29 04:56:44 +08:00
|
|
|
{{/each}}
|
2021-02-25 20:00:58 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|