14 lines
397 B
Handlebars
14 lines
397 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">…</a>
|
|
{{else}}
|
|
{{#link-to
|
|
params=breadcrumb.args
|
|
data-test-breadcrumb=breadcrumb.args.firstObject}}
|
|
{{breadcrumb.label}}
|
|
{{/link-to}}
|
|
{{/if}}
|
|
</li>
|
|
{{/each}}
|