2017-09-19 14:47:10 +00:00
|
|
|
{{#each-in attributes as |key value|}}
|
|
|
|
{{#if (is-object value)}}
|
2018-01-08 21:08:14 +00:00
|
|
|
<tr data-test-attributes-section>
|
|
|
|
<td data-test-heading class="is-subheading" colspan="2">
|
|
|
|
{{#if prefix}}<span class="is-faded" data-test-prefix>{{prefix}}.</span>{{/if}}{{key}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2020-06-01 19:03:56 +00:00
|
|
|
<AttributesSection @prefix={{if prefix (concat prefix "." key) key}} @attributes={{value}} />
|
2017-09-19 14:47:10 +00:00
|
|
|
{{else}}
|
2018-01-08 21:08:14 +00:00
|
|
|
<tr data-test-attributes-section>
|
|
|
|
<td data-test-key>
|
|
|
|
{{#if prefix}}<span class="is-faded" data-test-prefix>{{prefix}}.</span>{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{~key}}
|
|
|
|
</td>
|
2018-01-08 21:08:14 +00:00
|
|
|
<td data-test-value title="{{value}}">{{value}}</td>
|
2017-09-19 14:47:10 +00:00
|
|
|
</tr>
|
|
|
|
{{/if}}
|
|
|
|
{{/each-in}}
|