2018-05-14 11:07:59 +08:00
|
|
|
{{#if foundProblems}}
|
2018-06-12 18:47:03 +08:00
|
|
|
<div class="section dashboard-problems">
|
|
|
|
<div class="section-title">
|
2022-01-04 08:14:33 +08:00
|
|
|
{{#if highPriorityProblems.length}}
|
|
|
|
<h2>
|
|
|
|
{{d-icon "exclamation-triangle"}}
|
|
|
|
{{i18n "admin.dashboard.critical_problems_found"}}
|
|
|
|
</h2>
|
|
|
|
{{else}}
|
|
|
|
<h2>
|
|
|
|
{{d-icon "heart"}}
|
|
|
|
{{i18n "admin.dashboard.problems_found"}}
|
|
|
|
</h2>
|
|
|
|
{{/if}}
|
2018-06-12 18:47:03 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="section-body">
|
|
|
|
{{#conditional-loading-section isLoading=loadingProblems}}
|
2022-01-04 08:14:33 +08:00
|
|
|
{{#if highPriorityProblems.length}}
|
|
|
|
<div class="problem-messages priority-high">
|
|
|
|
<ul>
|
|
|
|
{{#each highPriorityProblems as |problem|}}
|
|
|
|
<li class={{concat "dashboard-problem " "priority-" problem.priority}}>{{html-safe problem.message}}</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="problem-messages priority-low">
|
2018-06-12 18:47:03 +08:00
|
|
|
<ul>
|
2022-01-04 08:14:33 +08:00
|
|
|
{{#each lowPriorityProblems as |problem|}}
|
2021-12-20 07:59:11 +08:00
|
|
|
<li class={{concat "dashboard-problem " "priority-" problem.priority}}>{{html-safe problem.message}}</li>
|
2018-05-14 11:07:59 +08:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2018-05-16 08:18:21 +08:00
|
|
|
</div>
|
2018-06-12 18:47:03 +08:00
|
|
|
|
2018-05-14 11:07:59 +08:00
|
|
|
<p class="actions">
|
2020-03-11 22:30:14 +08:00
|
|
|
{{d-button action=refreshProblems class="btn-default" icon="sync" label="admin.dashboard.refresh_problems"}}
|
2019-01-12 08:41:09 +08:00
|
|
|
{{i18n "admin.dashboard.last_checked"}}: {{problemsTimestamp}}
|
2018-05-14 11:07:59 +08:00
|
|
|
</p>
|
2018-06-12 18:47:03 +08:00
|
|
|
{{/conditional-loading-section}}
|
2018-05-14 11:07:59 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|