Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

558 B
Raw Blame
<ng-container *transloco="let t; read: 'badge-expander'">
  <div class="badge-expander">
    <div class="content">
      <ng-container *ngFor="let item of visibleItems; index as i;" [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: item, idx: i }"></ng-container>
      <button type="button" *ngIf="!isCollapsed && itemsLeft !== 0" class="btn btn-sm btn-outline-primary" (click)="toggleVisible()" [attr.aria-expanded]="!isCollapsed">
        {{t('more-items', {count: itemsLeft})}}
      </button>
    </div>
  </div>
</ng-container>