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