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.
14 lines
430 B
Handlebars
14 lines
430 B
Handlebars
{{#each breadcrumbs as |breadcrumb index|}}
|
|
<li class="{{if (eq (inc index) breadcrumbs.length) "is-active"}}">
|
|
{{#if breadcrumb.isPending}}
|
|
<a href="#" aria-label="loading" data-test-breadcrumb="loading">…</a>
|
|
{{else}}
|
|
<LinkTo
|
|
@params={{breadcrumb.args}}
|
|
data-test-breadcrumb={{breadcrumb.args.firstObject}}>
|
|
{{breadcrumb.label}}
|
|
</LinkTo>
|
|
{{/if}}
|
|
</li>
|
|
{{/each}}
|