mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 09:42:59 +08:00
6102c287f7
For convenience the i18n helper has been made returning a SafeString, but when used with other helpers, a String is expected and will cause unexpected behaviors.
This is the root cause of the initial bug fixed in d2bb127e2c
This commit is kept as it's a better security in case of unexpected behavior.
22 lines
523 B
Handlebars
22 lines
523 B
Handlebars
<div class='reason-controls'>
|
|
<label>
|
|
<div class='silence-reason-label'>
|
|
{{html-safe (i18n 'admin.user.silence_reason_label')}}
|
|
</div>
|
|
</label>
|
|
{{text-field
|
|
value=reason
|
|
class="silence-reason"
|
|
placeholderKey="admin.user.silence_reason_placeholder"}}
|
|
</div>
|
|
|
|
<label>
|
|
<div class='silence-message-label'>
|
|
{{i18n "admin.user.silence_message"}}
|
|
</div>
|
|
</label>
|
|
{{textarea
|
|
value=message
|
|
class="silence-message"
|
|
placeholder=(i18n "admin.user.silence_message_placeholder")}}
|