{{#if (gt items.length 0)}}
Health
{{#if (eq 'critical' item.MeshStatus)}} At least one health check on one instance is failing. {{else if (eq 'warning' item.MeshStatus)}} At least one health check on one instance has a warning. {{else if (eq 'passing' item.MeshStatus)}} All health checks are passing. {{else}} There are no health checks. {{/if}}
{{#if (gt item.InstanceCount 0)}} {{item.Name}} {{else}}

{{item.Name}}

{{/if}}
{{#if (and nspace (env 'CONSUL_NSPACES_ENABLED'))}} {{#if (not-eq item.Namespace nspace)}}
Namespace
{{item.Namespace}}
{{/if}} {{/if}} {{#if (not-eq item.InstanceCount 0)}} {{format-number item.InstanceCount}} {{pluralize item.InstanceCount 'Instance' without-count=true}} {{/if}} {{#if (eq item.Kind 'terminating-gateway')}} {{format-number item.GatewayConfig.AssociatedServiceCount}} linked services {{else if (eq item.Kind 'ingress-gateway')}} {{format-number item.GatewayConfig.AssociatedServiceCount}} upstreams {{/if}} {{#if (or item.ConnectedWithGateway item.ConnectedWithProxy)}}
This service uses a proxy for the Consul service mesh
{{#if (and item.ConnectedWithGateway item.ConnectedWithProxy )}}
in service mesh with proxy and gateway
{{else if item.ConnectedWithProxy}}
in service mesh with proxy
{{else if item.ConnectedWithGateway}}
in service mesh with gateway
{{/if}}
{{/if}}
{{/if}}