]>
Commit | Line | Data |
---|---|---|
c9e3565d | 1 | <h1 class="sr-only" i18n>Video channels</h1> |
c8487f3f | 2 | <div class="margin-content"> |
d3e91a5f | 3 | |
57cfff78 C |
4 | <div class="no-results" i18n *ngIf="channelPagination.totalItems === 0">This account does not have channels.</div> |
5 | ||
ad453580 | 6 | <div class="channels" myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onChannelDataSubject.asObservable()"> |
c8487f3f C |
7 | <div class="section channel" *ngFor="let videoChannel of videoChannels"> |
8 | <div class="section-title"> | |
dc890263 | 9 | <a [routerLink]="getVideoChannelLink(videoChannel)" i18n-title title="See this video channel"> |
c8487f3f C |
10 | <img [src]="videoChannel.avatarUrl" alt="Avatar" /> |
11 | ||
c9e3565d | 12 | <h2 class="section-title">{{ videoChannel.displayName }}</h2> |
9270ccf6 | 13 | <div class="followers" i18n>{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div> |
c8487f3f | 14 | </a> |
bc01017b | 15 | |
41eb700f | 16 | <my-subscribe-button [videoChannels]="[videoChannel]"></my-subscribe-button> |
c8487f3f C |
17 | </div> |
18 | ||
fff77ba2 | 19 | <div *ngIf="getVideosOf(videoChannel)" class="videos"> |
41eb700f | 20 | <div class="no-results my-5" i18n *ngIf="getVideosOf(videoChannel).length === 0">This channel doesn't have any videos.</div> |
fff77ba2 | 21 | |
bfbd9128 C |
22 | <my-video-miniature |
23 | *ngFor="let video of getVideosOf(videoChannel)" | |
24 | [video]="video" [user]="user" [displayVideoActions]="true" | |
25 | ></my-video-miniature> | |
fff77ba2 | 26 | </div> |
dc890263 | 27 | |
bfbd9128 | 28 | <a *ngIf="getVideosOf(videoChannel).length !== 0" class="show-more" i18n [routerLink]="getVideoChannelLink(videoChannel)"> |
14571f19 | 29 | SHOW THIS CHANNEL |
dc890263 | 30 | </a> |
c8487f3f C |
31 | </div> |
32 | </div> | |
33 | </div> |