2020-07-09 20:19:07 +00:00
|
|
|
{{#each-in this.attributes as |key value|}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{#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">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.prefix}}<span class="is-faded" data-test-prefix>{{this.prefix}}.</span>{{/if}}{{key}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2020-07-09 20:19:07 +00:00
|
|
|
<AttributesSection @prefix={{if this.prefix (concat this.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>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.prefix}}<span class="is-faded" data-test-prefix>{{this.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}}
|