2020-04-21 14:21:52 +00:00
|
|
|
{{#if item}}
|
|
|
|
{{#let (if _externalSource _externalSource (service/external-source item)) as |externalSource|}}
|
|
|
|
{{#if externalSource}}
|
|
|
|
{{#if (has-block)}}
|
|
|
|
{{yield
|
|
|
|
(component 'consul-external-source' item=item _externalSource=externalSource)
|
|
|
|
}}
|
|
|
|
{{else}}
|
2020-05-05 16:29:51 +00:00
|
|
|
<span data-test-external-source={{externalSource}} class="consul-external-source {{externalSource}}">
|
2020-04-21 14:21:52 +00:00
|
|
|
{{#if (eq externalSource 'aws')}}
|
|
|
|
<span>Registered via {{uppercase externalSource}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span>Registered via {{capitalize externalSource}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2020-04-14 20:07:09 +00:00
|
|
|
{{/if}}
|
2020-04-21 14:21:52 +00:00
|
|
|
{{/let}}
|
|
|
|
{{/if}}
|