Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

1.2 KB
Raw Blame
<section>
  @if (steps.length > 2) {
    <header>
      <div class="header-steps">
        @for (step of steps; track step; let i = $index; let isLast = $last) {
          <button
            class="step-info button-unstyle" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step) }"
            [disabled]="!isAccessible(step)"
            [attr.aria-current]="selectedIndex === i" (click)="onClick(i)"
          >
            <div class="step-index">
              <span class="visually-hidden" i18n>Step</span> {{ i + 1 }}

              @if (isCompleted(step)) {
                <div class="completed-icon">
                  <my-global-icon iconName="tick"></my-global-icon>
                </div>
              }
            </div>

            <div class="step-label">{{ step.label }}</div>
          </button>

          <!-- Do no display if this is the last child -->
          @if (!isLast) {
            <div class="connector"></div>
          }
        }
      </div>
    </header>
  }

  <div class="margin-content" [style.display]="selected ? 'block' : 'none'">
    <ng-container [ngTemplateOutlet]="selected.content"></ng-container>
  </div>

</section>