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 4111x                                                                                
<!-- tabindex is necessary to be a valid focus target for the <ish-skip-content-link> component -->
<nav
  class="breadcrumbs"
  id="nav-breadcrumbs"
  tabindex="-1"
  [attr.aria-label]="'breadcrumbs.aria_label' | translate"
  [ngStyle]="dividerStyle"
>
  <ol class="breadcrumb">
    @if (showHome) {
      <li class="breadcrumb-item">
        <a rel="home" routerLink="/home">{{ 'common.home.link' | translate }}</a>
      </li>
    }
    @if (account) {
      @if ((trail$ | async)?.length) {
        <li class="breadcrumb-item">
          <a routerLink="/account">{{ 'account.my_account.link' | translate }}</a>
        </li>
      } @else {
        <li aria-current="page" class="breadcrumb-item active">
          {{ 'account.my_account.link' | translate }}
        </li>
      }
    }
    @for (item of trail$ | async; track $index; let last = $last) {
      <li
        class="breadcrumb-item"
        [attr.aria-current]="last && !item.link ? 'page' : null"
        [ngClass]="{ active: last && !item.link }"
      >
        @if (item.link) {
          <a [queryParams]="item.linkParams" [routerLink]="item.link">{{ item.text || (item.key | translate) }}</a>
        } @else {
          {{ item.text || (item.key | translate) }}
        }
      </li>
    }
  </ol>
</nav>