diff options
Diffstat (limited to 'client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html')
-rw-r--r-- | client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html new file mode 100644 index 000000000..b2e8210d3 --- /dev/null +++ b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html | |||
@@ -0,0 +1,35 @@ | |||
1 | <h1 class="sr-only" i18n>My channels</h1> | ||
2 | <div class="video-channels-header"> | ||
3 | <a class="create-button" routerLink="create"> | ||
4 | <my-global-icon iconName="add" aria-hidden="true"></my-global-icon> | ||
5 | <ng-container i18n>Create video channel</ng-container> | ||
6 | </a> | ||
7 | </div> | ||
8 | |||
9 | <div class="video-channels"> | ||
10 | <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel"> | ||
11 | <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]"> | ||
12 | <img [src]="videoChannel.avatarUrl" alt="Avatar" /> | ||
13 | </a> | ||
14 | |||
15 | <div class="video-channel-info"> | ||
16 | <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page"> | ||
17 | <div class="video-channel-display-name">{{ videoChannel.displayName }}</div> | ||
18 | <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div> | ||
19 | </a> | ||
20 | |||
21 | <div i18n class="video-channel-followers">{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div> | ||
22 | |||
23 | <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div> | ||
24 | |||
25 | <div class="video-channel-buttons"> | ||
26 | <my-edit-button [routerLink]="[ 'update', videoChannel.nameWithHost ]"></my-edit-button> | ||
27 | <my-delete-button (click)="deleteVideoChannel(videoChannel)"></my-delete-button> | ||
28 | </div> | ||
29 | |||
30 | <div *ngIf="!isInSmallView" class="w-100 d-flex justify-content-end"> | ||
31 | <p-chart *ngIf="videoChannelsChartData && videoChannelsChartData[i]" type="line" [data]="videoChannelsChartData[i]" [options]="chartOptions" width="40vw" height="100px"></p-chart> | ||
32 | </div> | ||
33 | </div> | ||
34 | </div> | ||
35 | </div> | ||