2020-10-14 08:03:39 +00:00
|
|
|
{{#if @item}}
|
|
|
|
{{#let (service/external-source @item) as |externalSource|}}
|
2021-11-10 21:54:12 +00:00
|
|
|
{{#if (and @withInfo (eq externalSource 'consul-api-gateway'))}}
|
|
|
|
<dl class="tooltip-panel">
|
|
|
|
<dt>
|
|
|
|
<span
|
|
|
|
data-test-external-source={{externalSource}}
|
2022-10-24 19:39:28 +00:00
|
|
|
class="consul-external-source"
|
2021-11-10 21:54:12 +00:00
|
|
|
...attributes
|
|
|
|
>
|
2022-10-25 13:14:55 +00:00
|
|
|
<FlightIcon @name={{icon-mapping externalSource}} class="mr-1.5 w-4 h-4" />
|
2021-11-10 21:54:12 +00:00
|
|
|
Registered via {{t (concat "common.brand." externalSource)}}
|
|
|
|
</span>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
<MenuPanel @position="left" @menu={{false}}>
|
|
|
|
<BlockSlot @name="header">
|
|
|
|
API Gateways manage north-south traffic from external services to services in the Datacenter. For more information, read our documentation.
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="menu">
|
|
|
|
<li role="separator">
|
|
|
|
About {{t (concat "common.brand." externalSource)}}
|
|
|
|
</li>
|
|
|
|
<li role="none" class="learn-link">
|
|
|
|
<a tabindex="-1" role="menuitem" href={{concat (env 'CONSUL_DOCS_LEARN_URL')}} rel="noopener noreferrer" target="_blank">
|
|
|
|
Learn guides
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</BlockSlot>
|
|
|
|
</MenuPanel>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{else if externalSource}}
|
|
|
|
<span
|
|
|
|
data-test-external-source={{externalSource}}
|
2022-10-24 19:39:28 +00:00
|
|
|
class="consul-external-source"
|
2021-11-10 21:54:12 +00:00
|
|
|
...attributes
|
|
|
|
>
|
2022-10-25 13:14:55 +00:00
|
|
|
<FlightIcon @name={{icon-mapping externalSource}} class="mr-1.5 h-4 w-4" />
|
2021-11-10 21:54:12 +00:00
|
|
|
{{#if @label}}
|
|
|
|
{{@label}}
|
|
|
|
{{else}}
|
|
|
|
Registered via {{t (concat "common.brand." externalSource)}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2020-04-21 14:21:52 +00:00
|
|
|
{{/let}}
|
|
|
|
{{/if}}
|