mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 04:31:12 +00:00
d01ef7225a
1. Rebuild the heathchecked-resource component now we can copy and paste 2. As the above rebuild came with new icons, we also swapped out 'most' of the other areas where we were using these new icons, plus any icons that were effected by the new icon placeholders 3. Begin to remove more and more of the project specific icons (now replaced by the shared ones)
39 lines
1.4 KiB
Handlebars
39 lines
1.4 KiB
Handlebars
{{#stats-card}}
|
|
{{#block-slot 'icon'}}{{#if false}}<span data-tooltip="Leader">Leader</span>{{/if}}{{/block-slot}}
|
|
{{#block-slot 'mini-stat'}}
|
|
{{#if (eq checks.length 0)}}
|
|
<span class="zero" data-tooltip="This node has no registered healthchecks">{{checks.length}}</span>
|
|
{{else if (eq checks.length healthy.length)}}
|
|
<span class="non-zero" data-tooltip={{concat 'All ' healthy.length ' ' (pluralize healthy.length 'check' without-count=true) ' passing'}}>{{healthy.length}}</span>
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'header'}}
|
|
<a href={{href}}>
|
|
<strong>{{name}}</strong>
|
|
<span>{{address}}</span>
|
|
</a>
|
|
{{/block-slot}}
|
|
{{#block-slot 'body'}}
|
|
{{#if (not-eq checks.length healthy.length)}}
|
|
<ul>
|
|
{{#each unhealthy as |item|}}
|
|
<li>
|
|
<a href={{href}} class={{item.Status}}>
|
|
<strong data-tooltip={{capitalize item.Status}}>{{capitalize item.Status}}</strong>
|
|
<span>{{item.Name}}</span>
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
{{#if (gt healthy.length 0)}}
|
|
<li>
|
|
<a href={{href}} class="passing">
|
|
<strong data-tooltip={{concat healthy.length ' other passing ' (pluralize healthy.length 'check' without-count=true)}}></strong>
|
|
<span>{{healthy.length}} other passing {{pluralize healthy.length 'check' without-count=true}}</span>
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
</ul>
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{/stats-card}}
|