open-nomad/ui/app/templates/components/app-breadcrumbs.hbs
Buck Doyle 244157786a
Add explicit this to templates (#8388)
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.
2020-07-09 15:19:07 -05:00

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">&hellip;</a>
{{else}}
<LinkTo
@params={{breadcrumb.args}}
data-test-breadcrumb={{breadcrumb.args.firstObject}}>
{{breadcrumb.label}}
</LinkTo>
{{/if}}
</li>
{{/each}}