aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list/video-overview.component.html
blob: b644dd7982fdb7e3f793c2513d05d2bb9df5e048 (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
<div class="margin-content">

  <div class="no-results" i18n *ngIf="notResults">No results.</div>

  <div class="section" *ngFor="let object of overview.categories">
    <div class="section-title" i18n>
      <a routerLink="/search" [queryParams]="{ categoryOneOf: [ object.category.id ] }">{{ object.category.label }}</a>
    </div>

    <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
  </div>

  <div class="section" *ngFor="let object of overview.tags">
    <div class="section-title" i18n>
      <a routerLink="/search" [queryParams]="{ tagsOneOf: [ object.tag ] }">#{{ object.tag }}</a>
    </div>

    <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
  </div>

  <div class="section channel" *ngFor="let object of overview.channels">
    <div class="section-title" i18n>
      <a [routerLink]="[ '/video-channels', buildVideoChannelBy(object) ]">
        <img [src]="buildVideoChannelAvatarUrl(object)" alt="Avatar" />

        <div>{{ object.channel.displayName }}</div>
      </a>
    </div>

    <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
  </div>

</div>