UX: Add notice when watched words are regexes (#13493)

There is a big difference between regular watched words and regular
expressions and this has been confusing in the past. This notice adds
an explanation.

This commit also reorganizes the code of the test modal.
This commit is contained in:
Bianca Nenciu
2021-06-25 12:08:52 +03:00
committed by GitHub
parent c3394ed9bb
commit 8ab6fd88ef
3 changed files with 40 additions and 23 deletions

View File

@@ -26,6 +26,10 @@
<p class="about">{{actionDescription}}</p>
{{#if siteSettings.watched_words_regular_expressions}}
<p>{{html-safe (i18n "admin.watched_words.regex_warning" basePath=(base-path))}}</p>
{{/if}}
{{watched-word-form
actionKey=actionNameKey
action=(action "recordAdded")