mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
288316432b
* Create ConsulExternalSource with test and styling * Implement ConsulExternalSource to Service list page * Update icons for redesign * Refactor ListCollection and CompositeRow styling
18 lines
632 B
Handlebars
18 lines
632 B
Handlebars
{{#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>Synced from {{uppercase externalSource}}</span>
|
|
{{else}}
|
|
<span>Synced from {{capitalize externalSource}}</span>
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/let}}
|