aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
blob: 93f43a35046ecd8dfe617bd67145b98bd9ca23d2 (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
<div class="margin-content">

  <div class="no-results" i18n *ngIf="channelPagination.totalItems === 0">This account does not have channels.</div>

  <div class="channels" myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onChannelDataSubject.asObservable()">
    <div class="section channel" *ngFor="let videoChannel of videoChannels">
      <div class="section-title">
        <a [routerLink]="getVideoChannelLink(videoChannel)" i18n-title title="See this video channel">
          <img [src]="videoChannel.avatarUrl" alt="Avatar" />

          <div>{{ videoChannel.displayName }}</div>
          <div class="followers">{{ videoChannel.followersCount }} 
            <ng-container *ngIf="videoChannel.followersCount === 1; then single; else multiple"></ng-container>
            <ng-template i18n #single>subscriber</ng-template>
            <ng-template i18n #multiple>subscribers</ng-template>
          </div>
        </a>

        <my-subscribe-button [videoChannels]="[videoChannel]"></my-subscribe-button>
      </div>

      <div *ngIf="getVideosOf(videoChannel)" class="videos">
        <div class="no-results my-5" i18n *ngIf="getVideosOf(videoChannel).length === 0">This channel doesn't have any videos.</div>

        <my-video-miniature
          *ngFor="let video of getVideosOf(videoChannel)"
          [video]="video" [user]="user" [displayVideoActions]="true"
        ></my-video-miniature>
      </div>

      <a *ngIf="getVideosOf(videoChannel).length !== 0" class="show-more" i18n [routerLink]="getVideoChannelLink(videoChannel)">
        Show this channel
      </a>
    </div>
  </div>
</div>