2020-01-28 14:25:52 +00:00
{{ title item .Service .Service }}
2020-02-19 19:26:38 +00:00
<AppView @class="service show">
<BlockSlot @name="notification" as |status type|>
2020-02-06 12:06:48 +00:00
{{ partial 'dc/services/notifications' }}
2020-02-19 19:26:38 +00:00
</BlockSlot>
<BlockSlot @name="breadcrumbs">
2020-02-06 12:06:48 +00:00
<ol>
<li><a data-test-back href= {{ href-to 'dc.services' }} >All Services</a></li>
</ol>
2020-02-19 19:26:38 +00:00
</BlockSlot>
<BlockSlot @name="header">
2020-02-06 12:06:48 +00:00
<h1>
{{ item .Service .Service }}
2020-02-11 10:04:49 +00:00
{{ # let ( service / external-source item .Service ) as | externalSource | }}
{{ # if externalSource }}
<span data-test-external-source= {{ externalSource }} style= {{ concat 'background-image: var(--' externalSource '-icon)' }} data-tooltip="Registered via {{ externalSource }} ">Registered via {{ externalSource }} </span>
{{ / if }}
{{ / let }}
2019-03-22 17:01:10 +00:00
{{ # if ( eq item .Service .Kind 'connect-proxy' ) }}
2020-02-06 12:06:48 +00:00
<span class="kind-proxy">Proxy</span>
2019-07-05 08:07:25 +00:00
{{ else if ( eq item .Service .Kind 'mesh-gateway' ) }}
2020-02-06 12:06:48 +00:00
<span class="kind-proxy">Mesh Gateway</span>
2019-03-22 17:01:10 +00:00
{{ / if }}
2020-02-06 12:06:48 +00:00
</h1>
<label for="toolbar-toggle"></label>
2020-02-19 19:26:38 +00:00
<TabNav @items= {{ compact ( array "Instances" ( if ( not-eq chain ) "Routing" "" ) "Tags" ) }} @selected= {{ selectedTab }} />
</BlockSlot>
<BlockSlot @name="actions">
2020-02-06 12:06:48 +00:00
{{ # if urls .service }}
{{ # templated-anchor data-test-dashboard-anchor href = urls .service vars = ( hash Datacenter = dc Service = ( hash Name = item .Service .Service ) ) rel = "external" }} Open Dashboard {{ / templated-anchor }}
{{ / if }}
2020-02-19 19:26:38 +00:00
</BlockSlot>
<BlockSlot @name="content">
2020-02-06 12:06:48 +00:00
{{ # each
(compact
(array
(hash id=(slugify 'Instances') partial='dc/services/instances')
(if (not-eq chain null) (hash id=(slugify 'Routing') partial='dc/services/routing') '')
(hash id=(slugify 'Tags') partial='dc/services/tags')
)
2020-03-31 13:58:59 +00:00
) key="id" as |panel|
2020-02-06 12:06:48 +00:00
}}
2020-02-19 19:26:38 +00:00
<TabSection @id= {{ panel .id }} @selected= {{ eq ( if selectedTab selectedTab "" ) panel .id }} @onchange= {{ action "change" }} >
2020-02-06 12:06:48 +00:00
{{ partial panel .partial }}
2020-02-19 19:26:38 +00:00
</TabSection>
2020-02-06 12:06:48 +00:00
{{ / each }}
2020-02-19 19:26:38 +00:00
</BlockSlot>
</AppView>