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.

3.1 KB
Raw Blame
<ng-container *transloco="let t; read: 'library-recommended'">

  <ng-container *ngIf="all$ | async as all">
    <p *ngIf="all.length === 0">
      {{t('no-data')}}
    </p>
  </ng-container>

  <ng-container *ngIf="onDeck$ | async as onDeck">
    <app-carousel-reel [items]="onDeck" [title]="t('on-deck')">
      <ng-template #carouselItem let-item let-position="idx">
        <app-series-card [data]="item" [libraryId]="item.libraryId" [suppressLibraryLink]="libraryId !== 0" (reload)="reloadInProgress($event)" (dataChanged)="reloadInProgress($event)"></app-series-card>
      </ng-template>
    </app-carousel-reel>
  </ng-container>

  <ng-container *ngIf="quickReads$ | async as quickReads">
    <app-carousel-reel [items]="quickReads" [title]="t('quick-reads')">
      <ng-template #carouselItem let-item let-position="idx">
        <app-series-card [data]="item" [libraryId]="item.libraryId" [suppressLibraryLink]="libraryId !== 0" (reload)="reloadInProgress($event)" (dataChanged)="reloadInProgress($event)"></app-series-card>
      </ng-template>
    </app-carousel-reel>
  </ng-container>

  <ng-container *ngIf="quickCatchups$ | async as quickCatchups">
    <app-carousel-reel [items]="quickCatchups" [title]="t('quick-catchups')">
      <ng-template #carouselItem let-item let-position="idx">
        <app-series-card [data]="item" [libraryId]="item.libraryId" [suppressLibraryLink]="libraryId !== 0" (reload)="reloadInProgress($event)" (dataChanged)="reloadInProgress($event)"></app-series-card>
      </ng-template>
    </app-carousel-reel>
  </ng-container>

  <ng-container *ngIf="highlyRated$ | async as highlyRated">
    <app-carousel-reel [items]="highlyRated" [title]="t('highly-rated')">
      <ng-template #carouselItem let-item let-position="idx">
        <app-series-card [data]="item" [libraryId]="item.libraryId" [suppressLibraryLink]="libraryId !== 0" (reload)="reloadInProgress($event)" (dataChanged)="reloadInProgress($event)"></app-series-card>
      </ng-template>
    </app-carousel-reel>
  </ng-container>

  <ng-container *ngIf="rediscover$ | async as rediscover">
    <app-carousel-reel [items]="rediscover" [title]="t('rediscover')">
      <ng-template #carouselItem let-item let-position="idx">
        <app-series-card [data]="item" [libraryId]="item.libraryId" [suppressLibraryLink]="libraryId !== 0" (reload)="reloadInProgress($event)" (dataChanged)="reloadInProgress($event)"></app-series-card>
      </ng-template>
    </app-carousel-reel>
  </ng-container>

  <ng-container *ngIf="genre$ | async as genre">
    <ng-container *ngIf="moreIn$ | async as moreIn">
      <ng-container *ngIf="moreIn.length > 1">
        <app-carousel-reel [items]="moreIn" [title]="t('more-in-genre', {genre: genre.title})">
          <ng-template #carouselItem let-item let-position="idx">
            <app-series-card [data]="item" [libraryId]="item.libraryId" [suppressLibraryLink]="libraryId !== 0" (reload)="reloadInProgress($event)" (dataChanged)="reloadInProgress($event)"></app-series-card>
          </ng-template>
        </app-carousel-reel>
      </ng-container>
    </ng-container>
  </ng-container>

</ng-container>