mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 14:13:43 +08:00
d436b600fb
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
813 B
Handlebars
28 lines
813 B
Handlebars
{{#if foundProblems}}
|
|
<div class="section dashboard-problems">
|
|
<div class="section-title">
|
|
<h2>
|
|
{{d-icon "heart"}}
|
|
{{i18n 'admin.dashboard.problems_found'}}
|
|
</h2>
|
|
</div>
|
|
|
|
<div class="section-body">
|
|
{{#conditional-loading-section isLoading=loadingProblems}}
|
|
<div class="problem-messages">
|
|
<ul>
|
|
{{#each problems as |problem|}}
|
|
<li>{{html-safe problem}}</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
|
|
<p class="actions">
|
|
{{d-button action=(action "refreshProblems") class="btn-default" icon="sync" label="admin.dashboard.refresh_problems"}}
|
|
{{i18n 'admin.dashboard.last_checked'}}: {{problemsTimestamp}}
|
|
</p>
|
|
{{/conditional-loading-section}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|