2020-04-08 17:09:36 +00:00
|
|
|
{{yield}}
|
2020-02-12 17:46:29 +00:00
|
|
|
{{#if (gt items.length 0)}}
|
2020-05-19 16:18:04 +00:00
|
|
|
<ListCollection @items={{items}} class="consul-service-list" as |item index|>
|
2020-06-10 16:40:22 +00:00
|
|
|
{{#if (eq item.Kind 'terminating-gateway')}}
|
|
|
|
<a data-test-service-name href={{href-to "dc.services.show.services" item.Name}} class={{service/health-checks item}}>
|
2020-04-21 14:21:52 +00:00
|
|
|
{{item.Name}}
|
2020-04-08 17:09:36 +00:00
|
|
|
</a>
|
2020-06-10 16:40:22 +00:00
|
|
|
{{else if (eq item.Kind 'ingress-gateway')}}
|
|
|
|
<a data-test-service-name href={{href-to "dc.services.show.upstreams" item.Name}} class={{service/health-checks item}}>
|
|
|
|
{{item.Name}}
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
<a data-test-service-name href={{href-to "dc.services.show.instances" item.Name}} class={{service/health-checks item}}>
|
|
|
|
{{item.Name}}
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2020-04-21 14:21:52 +00:00
|
|
|
<ul>
|
2020-05-19 16:18:04 +00:00
|
|
|
{{#if (and nspace (env 'CONSUL_NSPACES_ENABLED'))}}
|
|
|
|
{{#if (not-eq item.Namespace nspace)}}
|
|
|
|
<li class="nspace">
|
|
|
|
{{item.Namespace}}
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2020-05-05 16:29:51 +00:00
|
|
|
<ConsulKind @item={{item}} as |Kind|>
|
|
|
|
<li>
|
|
|
|
<Kind />
|
|
|
|
</li>
|
|
|
|
</ConsulKind>
|
2020-04-21 14:21:52 +00:00
|
|
|
<ConsulExternalSource @item={{item}} as |ExternalSource|>
|
|
|
|
<li>
|
|
|
|
<ExternalSource />
|
|
|
|
</li>
|
|
|
|
</ConsulExternalSource>
|
|
|
|
{{#if (not-eq item.InstanceCount 0)}}
|
|
|
|
<li>
|
|
|
|
{{format-number item.InstanceCount}} {{pluralize item.InstanceCount 'Instance' without-count=true}}
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (get proxies item.Name)}}
|
2020-05-12 15:37:22 +00:00
|
|
|
<li data-test-proxy class="proxy">
|
2020-04-21 14:21:52 +00:00
|
|
|
connected with proxy
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
2020-05-12 12:02:04 +00:00
|
|
|
<TagList @item={{item}} as |Tags|>
|
|
|
|
<li>
|
|
|
|
<Tags />
|
|
|
|
</li>
|
|
|
|
</TagList>
|
2020-04-21 14:21:52 +00:00
|
|
|
</ul>
|
2020-04-08 17:09:36 +00:00
|
|
|
</ListCollection>
|
2020-02-12 17:46:29 +00:00
|
|
|
{{/if}}
|