2022-07-05 10:41:31 -07:00
|
|
|
{{#if this.foundProblems}}
|
2018-06-12 12:47:03 +02:00
|
|
|
<div class="section dashboard-problems">
|
|
|
|
<div class="section-title">
|
2022-01-04 13:00:58 +10:00
|
|
|
<h2>
|
|
|
|
{{d-icon "heart"}}
|
|
|
|
{{i18n "admin.dashboard.problems_found"}}
|
|
|
|
</h2>
|
2018-06-12 12:47:03 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="section-body">
|
2022-07-05 10:41:31 -07:00
|
|
|
<ConditionalLoadingSection @isLoading={{this.loadingProblems}}>
|
|
|
|
{{#if this.highPriorityProblems.length}}
|
2022-01-04 10:14:33 +10:00
|
|
|
<div class="problem-messages priority-high">
|
|
|
|
<ul>
|
2022-07-05 10:41:31 -07:00
|
|
|
{{#each this.highPriorityProblems as |problem|}}
|
2022-01-04 13:00:58 +10:00
|
|
|
<li class={{concat "dashboard-problem " "priority-" problem.priority}}>
|
|
|
|
{{d-icon "exclamation-triangle"}} {{html-safe problem.message}}
|
|
|
|
</li>
|
2022-01-04 10:14:33 +10:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="problem-messages priority-low">
|
2018-06-12 12:47:03 +02:00
|
|
|
<ul>
|
2022-07-05 10:41:31 -07:00
|
|
|
{{#each this.lowPriorityProblems as |problem|}}
|
2021-12-20 09:59:11 +10:00
|
|
|
<li class={{concat "dashboard-problem " "priority-" problem.priority}}>{{html-safe problem.message}}</li>
|
2018-05-14 13:07:59 +10:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2018-05-15 20:18:21 -04:00
|
|
|
</div>
|
2018-06-12 12:47:03 +02:00
|
|
|
|
2018-05-14 13:07:59 +10:00
|
|
|
<p class="actions">
|
2022-07-05 10:41:31 -07:00
|
|
|
<DButton @action={{this.refreshProblems}} @class="btn-default" @icon="sync" @label="admin.dashboard.refresh_problems" />
|
|
|
|
{{i18n "admin.dashboard.last_checked"}}: {{this.problemsTimestamp}}
|
2018-05-14 13:07:59 +10:00
|
|
|
</p>
|
2022-06-30 12:30:50 +02:00
|
|
|
</ConditionalLoadingSection>
|
2018-05-14 13:07:59 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|