You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/templates/components/healthchecked-resource.hbs

32 lines
858 B

<header>
<strong>{{address}}</strong>
<a href={{href}}>
<span>{{name}}</span>
</a>
</header>
<ul>
{{#if status }}
<li class={{status}}>
<a href={{href}}>
<strong>{{status}}</strong>
</a>
</li>
{{ else }}
{{#each unhealthy as |check| }}
<li class={{check.Status}}>
<a href={{href}}>
<strong>{{ check.Status }}</strong>
<span>{{ check.Name }}</span>
</a>
</li>
{{/each}}
{{#if (gt healthy.length 0)}}
<li class="passing">
<a href={{href}}>
<strong>{{healthy.length}}</strong>
<span>other passing {{pluralize-word healthy.length 'check' omitCount=true}}</span>
</a>
</li>
{{/if}}
{{/if}}
</ul>