aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
blob: 200d9415fa73628b622a82c00f08050405c41d55 (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
53
54
<h1 class="visually-hidden" i18n>Video channels</h1>

<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()" [dataObservable]="onChannelDataSubject.asObservable()">
    <div class="channel" *ngFor="let videoChannel of videoChannels">

      <div class="channel-avatar-row">
        <my-actor-avatar
          [actor]="videoChannel" actorType="channel"
          [internalHref]="getVideoChannelLink(videoChannel)"
          i18n-title
          title="See this video channel"
          size="75"
        ></my-actor-avatar>

        <h2>
          <a [routerLink]="getVideoChannelLink(videoChannel)" i18n-title title="See this video channel">
            {{ videoChannel.displayName }}
          </a>
        </h2>

        <div class="actor-counters">
          <div class="followers" i18n>{videoChannel.followersCount, plural, =0 {No subscribers} =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div>

          <span class="videos-count" *ngIf="getTotalVideosOf(videoChannel) !== undefined" i18n>
            {getTotalVideosOf(videoChannel), plural, =0 {No videos} =1 {1 video} other {{{ getTotalVideosOf(videoChannel) }} videos}}
          </span>
        </div>

        <div class="description-html" [innerHTML]="getChannelDescription(videoChannel)"></div>
      </div>

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

      <a i18n class="button-show-channel peertube-button-link orange-button-inverted" [routerLink]="getVideoChannelLink(videoChannel)">Show this channel</a>

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

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

        <div *ngIf="getTotalVideosOf(videoChannel)" class="miniature-show-channel">
          <a i18n [routerLink]="getVideoChannelLink(videoChannel)">SHOW THIS CHANNEL ></a>
        </div>
      </div>
    </div>
  </div>
</div>