mirror of https://github.com/status-im/consul.git
72 lines
2.9 KiB
Handlebars
72 lines
2.9 KiB
Handlebars
{{title item.ID}}
|
|
<AppView @class="instance show">
|
|
<BlockSlot @name="notification" as |status type|>
|
|
{{partial 'dc/services/notifications'}}
|
|
</BlockSlot>
|
|
<BlockSlot @name="breadcrumbs">
|
|
<ol>
|
|
<li><a data-test-back href={{href-to 'dc.services'}}>All Services</a></li>
|
|
<li><a data-test-back href={{href-to 'dc.services.show'}}>Service ({{item.Service}})</a></li>
|
|
</ol>
|
|
</BlockSlot>
|
|
<BlockSlot @name="header">
|
|
<div class="title-bar">
|
|
<h1>
|
|
{{ item.ID }}
|
|
</h1>
|
|
<ConsulExternalSource @item={{item}} />
|
|
</div>
|
|
<dl>
|
|
<dt>Service Name</dt>
|
|
<dd><a href="{{href-to 'dc.services.show' item.Service}}">{{item.Service}}</a></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>Node Name</dt>
|
|
<dd><a href="{{href-to 'dc.nodes.show' item.Node.Node}}">{{item.Node.Node}}</a></dd>
|
|
</dl>
|
|
{{#if proxy.ServiceName}}
|
|
<dl>
|
|
</dl>
|
|
{{/if}}
|
|
{{#if (eq item.Kind 'connect-proxy')}}
|
|
{{#if item.Proxy.DestinationServiceID}}
|
|
<dl>
|
|
<dt data-test-proxy-destination="instance">Dest. Service Instance</dt>
|
|
<dd><a href="{{href-to 'dc.services.instance' item.Proxy.DestinationServiceName item.Node.Node item.Proxy.DestinationServiceID}}">{{item.Proxy.DestinationServiceID}}</a></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>Local Service Address</dt>
|
|
<dd>{{item.Proxy.LocalServiceAddress}}:{{item.Proxy.LocalServicePort}}</dd>
|
|
</dl>
|
|
{{else}}
|
|
<dl>
|
|
<dt data-test-proxy-destination="service">Dest. Service</dt>
|
|
<dd><a href="{{href-to 'dc.services.show' item.Proxy.DestinationServiceName}}">{{item.Proxy.DestinationServiceName}}</a></dd>
|
|
</dl>
|
|
{{/if}}
|
|
{{/if}}
|
|
</BlockSlot>
|
|
<BlockSlot @name="content">
|
|
<TabNav @items={{
|
|
compact
|
|
(array
|
|
(hash label="Health Checks" href=(href-to "dc.services.instance.healthchecks") selected=(is-href "dc.services.instance.healthchecks"))
|
|
(if
|
|
(eq item.Kind 'connect-proxy')
|
|
(hash label="Upstreams" href=(href-to "dc.services.instance.upstreams") selected=(is-href "dc.services.instance.upstreams")) ""
|
|
)
|
|
(if
|
|
(and (eq item.Kind 'connect-proxy') (gt item.Proxy.Expose.Paths.length 0))
|
|
(hash label="Exposed Paths" href=(href-to "dc.services.instance.exposedpaths") selected=(is-href "dc.services.instance.exposedpaths")) ""
|
|
)
|
|
(if
|
|
(eq item.Kind 'mesh-gateway')
|
|
(hash label="Addresses" href=(href-to "dc.services.instance.addresses") selected=(is-href "dc.services.instance.addresses")) ""
|
|
)
|
|
(hash label="Tags" href=(href-to "dc.services.instance.tags") selected=(is-href "dc.services.instance.tags"))
|
|
(hash label="Meta Data" href=(href-to "dc.services.instance.metadata") selected=(is-href "dc.services.instance.metadata"))
|
|
)
|
|
}}/>
|
|
{{outlet}}
|
|
</BlockSlot>
|
|
</AppView> |