mirror of https://github.com/hashicorp/consul
20 lines
686 B
Handlebars
20 lines
686 B
Handlebars
{{#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}}
|
|
<span data-test-external-source={{externalSource}} class="consul-external-source {{externalSource}}">
|
|
{{#if (eq externalSource 'aws')}}
|
|
<span>Registered via {{uppercase externalSource}}</span>
|
|
{{else}}
|
|
<span>Registered via {{capitalize externalSource}}</span>
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/let}}
|
|
{{/if}}
|