mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 05:03:58 +08:00
37 lines
1.3 KiB
Handlebars
37 lines
1.3 KiB
Handlebars
{{#if foundProblems}}
|
|
<div class="dashboard-stats detected-problems">
|
|
<div class="problem-messages">
|
|
{{#conditional-loading-spinner condition=loadingProblems}}
|
|
<div>
|
|
<h3>
|
|
<span class="look-here">{{d-icon "exclamation-triangle"}}</span>
|
|
{{i18n 'admin.dashboard.problems_found'}}</h3>
|
|
<ul class="{{if loadingProblems 'invisible'}}">
|
|
{{#each problems as |problem|}}
|
|
<li>{{{problem}}}</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
<p class="actions">
|
|
<small>{{i18n 'admin.dashboard.last_checked'}}: {{problemsTimestamp}}</small>
|
|
{{d-button action="refreshProblems" class="btn-small" icon="refresh" label="admin.dashboard.refresh_problems"}}
|
|
</p>
|
|
{{/conditional-loading-spinner}}
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
{{else}}
|
|
{{#if thereWereProblems}}
|
|
<div class="dashboard-stats detected-problems">
|
|
<div class="look-here"> </div>
|
|
<div class="problem-messages">
|
|
<p>
|
|
{{i18n 'admin.dashboard.no_problems'}}
|
|
{{d-button action="refreshProblems" class="btn-small" icon="refresh" label="admin.dashboard.refresh_problems"}}
|
|
</p>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|