open-consul/ui-v2/app/templates/dc/services/metadata.hbs
John Cowen 411fb2e25c ui: Move to angle brackets for ember components (#7321)
* Modify templates with codemods angle brackets

* ui: Fix up problem with intention filter action attribute

Co-authored-by: Kenia <19161242+kaxcode@users.noreply.github.com>
2020-05-12 17:14:05 +00:00

28 lines
627 B
Handlebars

{{#if item.Meta}}
{{#with (object-entries item.Meta) as |meta|}}
{{#tabular-collection
data-test-metadata
items=meta as |item index|
}}
<BlockSlot @name="header">
<th>Key</th>
<th>Value</th>
</BlockSlot>
<BlockSlot @name="row">
<td>
<span>
{{object-at 0 item}}
</span>
</td>
<td>
<span>{{object-at 1 item}}</span>
</td>
</BlockSlot>
{{/tabular-collection}}
{{/with}}
{{else}}
<p>
This instance has no meta data.
</p>
{{/if}}