2020-02-12 17:46:29 +00:00
|
|
|
{{#if (gt items.length 0)}}
|
2020-02-19 19:26:38 +00:00
|
|
|
<TabularCollection @items={{items}} as |item index|>
|
|
|
|
<BlockSlot @name="header">
|
2020-02-12 17:46:29 +00:00
|
|
|
<th style={{remainingWidth}}>Service</th>
|
|
|
|
<th style={{totalWidth}}>
|
|
|
|
Health Checks
|
|
|
|
<span>
|
|
|
|
<em role="tooltip">The number of health checks for the service on all nodes</em>
|
|
|
|
</span>
|
|
|
|
</th>
|
|
|
|
<th style={{remainingWidth}}>Tags</th>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="row">
|
2020-02-12 17:46:29 +00:00
|
|
|
<td data-test-service={{item.Name}} style={{remainingWidth}}>
|
|
|
|
<a href={{href-to routeName item.Name}}>
|
|
|
|
{{#let (service/external-source item) as |externalSource| }}
|
|
|
|
{{#if externalSource }}
|
|
|
|
<span data-test-external-source={{externalSource}} style={{concat 'background-image: var(--' externalSource '-icon)'}}></span>
|
|
|
|
{{else}}
|
|
|
|
<span></span>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{item.Name}}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td style={{totalWidth}}>
|
2020-02-19 19:26:38 +00:00
|
|
|
<HealthcheckInfo @passing={{item.ChecksPassing}} @warning={{item.ChecksWarning}} @critical={{item.ChecksCritical}} @passingWidth={{passingWidth}} @warningWidth={{warningWidth}} @criticalWidth={{criticalWidth}} />
|
2020-02-12 17:46:29 +00:00
|
|
|
</td>
|
|
|
|
<td style={{remainingWidth}}>
|
2020-02-19 19:26:38 +00:00
|
|
|
<TagList @items={{item.Tags}} />
|
2020-02-12 17:46:29 +00:00
|
|
|
</td>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</TabularCollection>
|
2020-02-12 17:46:29 +00:00
|
|
|
{{/if}}
|