mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
53 lines
2.0 KiB
HTML
53 lines
2.0 KiB
HTML
<h1 class="sr-only" i18n>Discover</h1>
|
|
<div class="margin-content">
|
|
|
|
<div class="no-results" i18n *ngIf="notResults">No results.</div>
|
|
|
|
<div
|
|
myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()"
|
|
>
|
|
<ng-container *ngFor="let overview of overviews">
|
|
|
|
<div class="section videos" *ngFor="let object of overview.categories">
|
|
<h1 class="section-title">
|
|
<a routerLink="/search" [queryParams]="{ categoryOneOf: [ object.category.id ] }">{{ object.category.label }}</a>
|
|
</h1>
|
|
|
|
<div class="video-wrapper" *ngFor="let video of buildVideos(object.videos)">
|
|
<my-video-miniature [video]="video" [fitWidth]="true" [user]="userMiniature" [displayVideoActions]="false">
|
|
</my-video-miniature>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section videos" *ngFor="let object of overview.tags">
|
|
<h2 class="section-title">
|
|
<a routerLink="/search" [queryParams]="{ tagsOneOf: [ object.tag ] }">#{{ object.tag }}</a>
|
|
</h2>
|
|
|
|
<div class="video-wrapper" *ngFor="let video of buildVideos(object.videos)">
|
|
<my-video-miniature [video]="video" [fitWidth]="true" [user]="userMiniature" [displayVideoActions]="false">
|
|
</my-video-miniature>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section channel videos" *ngFor="let object of overview.channels">
|
|
<div class="section-title">
|
|
<a [routerLink]="[ '/video-channels', buildVideoChannelBy(object) ]">
|
|
<img [src]="buildVideoChannelAvatarUrl(object)" alt="Avatar" />
|
|
|
|
<h2 class="section-title">{{ object.channel.displayName }}</h2>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="video-wrapper" *ngFor="let video of buildVideos(object.videos)">
|
|
<my-video-miniature [video]="video" [fitWidth]="true" [user]="userMiniature" [displayVideoActions]="false">
|
|
</my-video-miniature>
|
|
</div>
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
</div>
|