958991db94
* Create ConsulServiceInstanceList with styling and test * Implement ConsulServiceInstanceList to Service Detail page * Implement ConsulExternalSource to Services Show page header * Update services/show page object * Update the styling of CompositeRow * Refactor ConsulServiceList component and styling * Update ConsulExternalSource to say 'Registered via...' * Upgrade consul-api-double to patch 2.14.1 * Fix up tests to not use Kind in service models * Update ListCollection with clickFirstAnchor action * Add $typo-size-450 to typography base variables
20 lines
693 B
Handlebars
20 lines
693 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 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}}
|