2998deac50
This is mostly a direct application of the ember-angle-brackets-codemod. I manually restored newlines in multi-line component invocations, usually preserving file line length except for now-non-positional link-to @route. I needed to rename task to taskState in some cases to avoid Ember Concurrency naming conflicts.
19 lines
666 B
Handlebars
19 lines
666 B
Handlebars
{{#each-in attributes as |key value|}}
|
|
{{#if (is-object value)}}
|
|
<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}}
|
|
</td>
|
|
</tr>
|
|
<AttributesSection @prefix={{if prefix (concat prefix "." key) key}} @attributes={{value}} />
|
|
{{else}}
|
|
<tr data-test-attributes-section>
|
|
<td data-test-key>
|
|
{{#if prefix}}<span class="is-faded" data-test-prefix>{{prefix}}.</span>{{/if}}
|
|
{{~key}}
|
|
</td>
|
|
<td data-test-value title="{{value}}">{{value}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
{{/each-in}}
|