{{#if (service/exists item)}}
Health
{{#if (eq 'critical' (service/health-checks item))}} At least one health check on one instance is failing. {{else if (eq 'warning' (service/health-checks item))}} At least one health check on one instance has a warning. {{else if (eq 'passing' (service/health-checks item))}} All health checks are passing. {{else}} There are no health checks. {{/if}}
{{#if (and (env 'CONSUL_NSPACES_ENABLED') (not-eq item.Namespace nspace))}} {{item.Name}} {{else}} {{item.Name}} {{/if}} {{else}}

{{item.Name}}

{{/if}}
{{#if (and (env 'CONSUL_NSPACES_ENABLED') (not-eq item.Namespace nspace))}}
Namespace
{{item.Namespace}}
{{/if}} {{#if (not-eq item.GatewayConfig.ListenerPort 0)}}
:{{item.GatewayConfig.ListenerPort}}
{{/if}}