All files / src/app/shared/components/common/breadcrumb breadcrumb.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 4311x                                                                                    
<!-- tabindex is necessary to be a valid focus target for the <ish-skip-content-link> component -->
<nav
  class="breadcrumbs row"
  id="nav-breadcrumbs"
  tabindex="-1"
  [attr.aria-label]="'breadcrumbs.aria_label' | translate"
>
  <ol class="breadcrumbs-list">
    @if (showHome) {
      <li class="breadcrumbs-list breadcrumbs-list-home">
        <a class="breadcrumbs-list-link breadcrumbs-list-link-home" rel="home" routerLink="/home">{{
          'common.home.link' | translate
        }}</a
        ><span class="breadcrumb-list-separator">{{ separator }}</span>
      </li>
    }
    @if (account) {
      <li class="breadcrumbs-list">
        @if ((trail$ | async)?.length) {
          <a class="breadcrumbs-list-link" routerLink="/account">{{ 'account.my_account.link' | translate }}</a
          ><span class="breadcrumb-list-separator">{{ separator }}</span>
        } @else {
          {{ 'account.my_account.link' | translate }}
        }
      </li>
    }
    @for (item of trail$ | async; track item.key; let index = $index; let last = $last) {
      <li class="breadcrumbs-list" [ngClass]="{ 'breadcrumbs-list-active': last }">
        @if (item.link) {
          <a class="breadcrumbs-list-link" [queryParams]="item.linkParams" [routerLink]="item.link">{{
            item.text || (item.key | translate)
          }}</a>
        } @else {
          <div aria-current="location">{{ item.text || (item.key | translate) }}</div>
        }
        @if (!last) {
          <span aria-hidden="true" class="breadcrumb-list-separator">{{ separator }}</span>
        }
      </li>
    }
  </ol>
</nav>