open-nomad/ui/app/templates/components/fs/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

15 lines
506 B
Handlebars

<ul>
<li class={{if this.breadcrumbs "" "is-active"}}>
<Fs::Link @allocation={{this.allocation}} @taskState={{this.taskState}}>
{{if this.taskState this.taskState.name this.allocation.shortId}}
</Fs::Link>
</li>
{{#each this.breadcrumbs as |breadcrumb|}}
<li class={{if breadcrumb.isLast "is-active"}}>
<Fs::Link @allocation={{this.allocation}} @taskState={{this.taskState}} @path={{breadcrumb.path}}>
{{breadcrumb.name}}
</Fs::Link>
</li>
{{/each}}
</ul>