mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
683cb28099
This pr replaces `{{{ }}}` usage by a {{html-safe}} helper. While it doesn't solve the underlying issue, it gives us a path forward without risking breaking too much existing behavior. Also introduces an htmlSafe computed macro: ``` import { htmlSafe } from "discourse/lib/computed"; htmlDescription: htmlSafe("description") ``` Overtime {{html-safe}} usage should be removed and moved to components properties or specialized components/helpers.
28 lines
714 B
Handlebars
28 lines
714 B
Handlebars
<p>{{i18n 'admin.email.advanced_test.desc'}}</p>
|
|
|
|
<div class='email-advanced-test'>
|
|
<label for="email">{{i18n 'admin.email.advanced_test.email'}}</label>
|
|
{{textarea name="email" value=email class="email-body"}}
|
|
{{d-button
|
|
action=(action "run")
|
|
label="admin.email.advanced_test.run"}}
|
|
</div>
|
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
|
|
|
{{#if format}}
|
|
<hr>
|
|
<div class="text">
|
|
<h3>{{i18n 'admin.email.advanced_test.text'}}</h3>
|
|
<pre class="full-reason">{{html-safe text}}</pre>
|
|
</div>
|
|
|
|
<hr>
|
|
<div class="elided">
|
|
<h3>{{i18n 'admin.email.advanced_test.elided'}}</h3>
|
|
<pre class="full-reason">{{html-safe elided}}</pre>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{/conditional-loading-spinner}}
|