discourse/app/assets/javascripts/admin/templates/watched-words-action.hbs

22 lines
630 B
Handlebars
Raw Normal View History

<h2>{{model.name}}</h2>
<p class="about">{{actionDescription}}</p>
{{watched-word-form
actionKey=actionNameKey
action="recordAdded"
regularExpressions=adminWatchedWords.regularExpressions}}
{{watched-word-uploader uploading=uploading actionKey=actionNameKey done="uploadComplete"}}
<div class='clearfix'></div>
<div class="watched-words-list">
{{#if showWordsList}}
{{#each filteredContent as |word| }}
<div class="watched-word-box">{{admin-watched-word word=word action="recordRemoved"}}</div>
{{/each}}
{{else}}
{{i18n 'admin.watched_words.word_count' count=model.words.length}}
{{/if}}
</div>