{{#if (eq @item.Datacenter '')}}

{{@item.Name}}

{{else}}

{{@item.Name}}

{{#if (eq @item.Source 'proxy-registration')}} {{/if}} {{#if (eq @item.Source 'routing-config')}} {{/if}}
{{#if (and (can 'use partitions') (can 'use nspaces'))}}
{{#if (not-eq @item.Partition @service.Partition)}}
Admin Partition
{{@item.Partition}}
{{/if}} {{#if (or (not-eq @item.Partition @service.Partition) (not-eq @item.Namespace @service.Namespace))}}
Namespace
{{@item.Namespace}}
{{/if}}
{{/if}} {{#if (not-eq @item.Source 'routing-config')}} {{#if (eq @item.Datacenter @dc)}} {{#let (service/health-percentage @item) as |percentage|}} {{#if (eq percentage '')}} No health checks {{else}} {{#if (not-eq percentage.passing 0)}} {{percentage.passing}}% {{/if}} {{#if (not-eq percentage.warning 0)}} {{percentage.warning}}% {{/if}} {{#if (not-eq percentage.critical 0)}} {{percentage.critical}}% {{/if}} {{/if}} {{/let}} {{else}}
We are unable to determine the health status of services in remote datacenters.
Health
{{/if}} {{/if}}
{{yield}}
{{/if}}