244157786a
This is the result of running the no-implicit-this-codemod, some manual fixes, and the addition of a linting rule to prevent future ambiguity.
14 lines
440 B
Handlebars
14 lines
440 B
Handlebars
{{#each this.breadcrumbs as |breadcrumb index|}}
|
|
<li class="{{if (eq (inc index) this.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}}
|