aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/video-list/overview/video-overview.component.html
blob: e21bffb6c5ad9ebe04b696f13c14ce1043ec08c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<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" [user]="userMiniature" [displayVideoActions]="true">
          </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" [user]="userMiniature" [displayVideoActions]="true">
          </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) ]">
            <my-actor-avatar [channel]="buildVideoChannel(object)"></my-actor-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" [user]="userMiniature" [displayVideoActions]="true">
          </my-video-miniature>
        </div>
      </div>

    </ng-container>

  </div>

</div>