All files / src/app/shared/components/product/product-promotion product-promotion.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 334x                                                                
@if (visible$ | async) {
  @if (promotions$ | async; as promotions) {
    <ul class="promotion-list">
      @for (promotion of promotions; track promotion.id) {
        @if (!promotion.disableMessages) {
          <li class="promotion-list-item">
            @if (displayType === 'simple' || displayType === 'simpleWithDetail') {
              <span class="promotion-short-title" [ishServerHtml]="promotion.title"></span>
              @if (displayType === 'simpleWithDetail') {
                <ish-promotion-details [promotion]="promotion" />
              }
            } @else {
              @if (promotion.icon) {
                <div class="promotion-icon" [ishServerHtml]="promotion.icon"></div>
              }
              @if (promotion.title) {
                <div class="promotion-short-title" [ishServerHtml]="promotion.title"></div>
              }
              <br />
              <div>
                @if (promotion.longTitle) {
                  <span class="promotion-long-title" [ishServerHtml]="promotion.longTitle"></span>
                }
                <ish-promotion-details [promotion]="promotion" />
              </div>
            }
          </li>
        }
      }
    </ul>
  }
}