mirror of https://github.com/status-im/consul.git
18 lines
524 B
Handlebars
18 lines
524 B
Handlebars
{{#if item}}
|
|
{{#let (service/external-source item) as |externalSource|}}
|
|
{{#if externalSource}}
|
|
<span data-test-external-source={{externalSource}} class="consul-external-source {{externalSource}}">
|
|
{{#if label}}
|
|
{{label}}
|
|
{{else}}
|
|
{{#if (eq externalSource 'aws')}}
|
|
Registered via {{uppercase externalSource}}
|
|
{{else}}
|
|
Registered via {{capitalize externalSource}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
{{/let}}
|
|
{{/if}}
|