2020-10-09 20:57:08 +00:00
|
|
|
<a class="card"
|
2020-11-24 14:33:34 +00:00
|
|
|
href={{if
|
|
|
|
(and (env 'CONSUL_NSPACES_ENABLED') (not-eq @item.Namespace @service.Namespace))
|
|
|
|
(href-to "nspace.dc.services.show.index" (concat '~' @item.Namespace) @item.Datacenter @item.Name)
|
|
|
|
(href-to "dc.services.show.index" @item.Name)
|
|
|
|
}}
|
2020-11-12 15:40:15 +00:00
|
|
|
data-permission={{service/intention-permissions @item}}
|
|
|
|
id="{{@item.Namespace}}{{@item.Name}}"
|
2020-10-09 20:31:15 +00:00
|
|
|
>
|
|
|
|
<p>
|
2020-11-12 15:40:15 +00:00
|
|
|
{{@item.Name}}
|
2020-10-09 20:31:15 +00:00
|
|
|
</p>
|
|
|
|
<div class="details">
|
2020-11-19 18:40:05 +00:00
|
|
|
{{#if (and (env 'CONSUL_NSPACES_ENABLED') (not-eq @item.Namespace @service.Namespace))}}
|
2020-10-09 20:31:15 +00:00
|
|
|
<dl class="nspace">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
Namespace
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
2020-11-12 15:40:15 +00:00
|
|
|
{{@item.Namespace}}
|
2020-10-09 20:31:15 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
2020-11-12 15:40:15 +00:00
|
|
|
{{#if (eq @item.Datacenter @dc)}}
|
|
|
|
{{#let (service/health-percentage @item) as |percentage|}}
|
2020-10-09 20:31:15 +00:00
|
|
|
{{#if (not-eq percentage.passing 0)}}
|
|
|
|
<span class="passing">{{percentage.passing}}%</span>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (not-eq percentage.warning 0)}}
|
|
|
|
<span class="warning">{{percentage.warning}}%</span>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (not-eq percentage.critical 0)}}
|
|
|
|
<span class="critical">{{percentage.critical}}%</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{else}}
|
|
|
|
<dl class="health">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
We are unable to determine the health status of services in remote datacenters.
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Health
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2020-12-08 15:47:55 +00:00
|
|
|
{{yield}}
|
2020-11-12 15:40:15 +00:00
|
|
|
</a>
|