32 lines
837 B
Handlebars
32 lines
837 B
Handlebars
|
{{#if (gt @items.length 0)}}
|
||
|
{{#if (eq this.healthCheck.check 'empty') }}
|
||
|
<dl class={{this.healthCheck.check}}>
|
||
|
<dt>
|
||
|
<Tooltip>
|
||
|
{{capitalize @type}} Checks
|
||
|
</Tooltip>
|
||
|
</dt>
|
||
|
<dd>No {{@type}} checks</dd>
|
||
|
</dl>
|
||
|
{{else}}
|
||
|
{{#if (eq this.healthCheck.count @items.length)}}
|
||
|
<dl class={{this.healthCheck.check}}>
|
||
|
<dt>
|
||
|
<Tooltip>
|
||
|
{{capitalize @type}} Checks
|
||
|
</Tooltip>
|
||
|
</dt>
|
||
|
<dd>All {{@type}} checks {{this.healthCheck.status}}</dd>
|
||
|
</dl>
|
||
|
{{else}}
|
||
|
<dl class={{this.healthCheck.check}}>
|
||
|
<dt>
|
||
|
<Tooltip>
|
||
|
{{capitalize @type}} Checks
|
||
|
</Tooltip>
|
||
|
</dt>
|
||
|
<dd>{{this.healthCheck.count}}/{{@items.length}} {{@type}} checks {{this.healthCheck.status}}</dd>
|
||
|
</dl>
|
||
|
{{/if}}
|
||
|
{{/if}}
|
||
|
{{/if}}
|