]>
Commit | Line | Data |
---|---|---|
c9e3565d | 1 | <h1 class="sr-only" i18n>Discover</h1> |
2d3741d6 C |
2 | <div class="margin-content"> |
3 | ||
4 | <div class="no-results" i18n *ngIf="notResults">No results.</div> | |
5 | ||
111fdc26 | 6 | <div |
dd24f1bb | 7 | myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" |
111fdc26 C |
8 | > |
9 | <ng-container *ngFor="let overview of overviews"> | |
2d3741d6 | 10 | |
cf78883c | 11 | <div class="section videos" *ngFor="let object of overview.categories"> |
c9e3565d | 12 | <h1 class="section-title"> |
111fdc26 | 13 | <a routerLink="/search" [queryParams]="{ categoryOneOf: [ object.category.id ] }">{{ object.category.label }}</a> |
c9e3565d | 14 | </h1> |
2d3741d6 | 15 | |
cf78883c | 16 | <div class="video-wrapper" *ngFor="let video of buildVideos(object.videos)"> |
0f7407d9 | 17 | <my-video-miniature [video]="video" [user]="userMiniature" [displayVideoActions]="true"> |
cf78883c C |
18 | </my-video-miniature> |
19 | </div> | |
111fdc26 | 20 | </div> |
2d3741d6 | 21 | |
cf78883c | 22 | <div class="section videos" *ngFor="let object of overview.tags"> |
c9e3565d | 23 | <h2 class="section-title"> |
111fdc26 | 24 | <a routerLink="/search" [queryParams]="{ tagsOneOf: [ object.tag ] }">#{{ object.tag }}</a> |
c9e3565d | 25 | </h2> |
111fdc26 | 26 | |
cf78883c | 27 | <div class="video-wrapper" *ngFor="let video of buildVideos(object.videos)"> |
0f7407d9 | 28 | <my-video-miniature [video]="video" [user]="userMiniature" [displayVideoActions]="true"> |
cf78883c C |
29 | </my-video-miniature> |
30 | </div> | |
111fdc26 C |
31 | </div> |
32 | ||
cf78883c | 33 | <div class="section channel videos" *ngFor="let object of overview.channels"> |
111fdc26 | 34 | <div class="section-title"> |
71887396 | 35 | <a [routerLink]="[ '/c', buildVideoChannelBy(object) ]"> |
d0800f76 | 36 | <my-actor-avatar [channel]="buildVideoChannel(object)" size="28"></my-actor-avatar> |
111fdc26 | 37 | |
c9e3565d | 38 | <h2 class="section-title">{{ object.channel.displayName }}</h2> |
111fdc26 C |
39 | </a> |
40 | </div> | |
2d3741d6 | 41 | |
cf78883c | 42 | <div class="video-wrapper" *ngFor="let video of buildVideos(object.videos)"> |
0f7407d9 | 43 | <my-video-miniature [video]="video" [user]="userMiniature" [displayVideoActions]="true"> |
cf78883c C |
44 | </my-video-miniature> |
45 | </div> | |
111fdc26 | 46 | </div> |
1a471091 | 47 | |
111fdc26 | 48 | </ng-container> |
2d3741d6 | 49 | |
2d3741d6 C |
50 | </div> |
51 | ||
52 | </div> |