]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html
variable columns for users list, more columns possible, badge display for statuses
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / +my-account-video-channels / my-account-video-channels.component.html
CommitLineData
ed5bb517
K
1<h1>
2 <my-global-icon iconName="channel" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>My channels</ng-container>
4</h1>
5
08c1efbe
C
6<div class="video-channels-header">
7 <a class="create-button" routerLink="create">
6ad971d5 8 <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
8c966daa 9 <ng-container i18n>Create video channel</ng-container>
08c1efbe
C
10 </a>
11</div>
12
13<div class="video-channels">
8165d00a 14 <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel">
f5b0af50 15 <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]">
08c1efbe
C
16 <img [src]="videoChannel.avatarUrl" alt="Avatar" />
17 </a>
18
19 <div class="video-channel-info">
d6d951dd 20 <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
08c1efbe 21 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
f5b0af50 22 <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
08c1efbe
C
23 </a>
24
8165d00a
RK
25 <div i18n class="video-channel-followers">{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div>
26
1ba471c5
C
27 <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div>
28
8a3183e5
K
29 <div class="video-channel-buttons">
30 <my-edit-button [routerLink]="[ 'update', videoChannel.nameWithHost ]"></my-edit-button>
31 <my-delete-button (click)="deleteVideoChannel(videoChannel)"></my-delete-button>
32 </div>
33
8165d00a 34 <div *ngIf="!isInSmallView" class="w-100 d-flex justify-content-end">
3d527ba1 35 <p-chart *ngIf="videoChannelsChartData && videoChannelsChartData[i]" type="line" [data]="videoChannelsChartData[i]" [options]="chartOptions" width="40vw" height="100px"></p-chart>
8165d00a 36 </div>
08c1efbe 37 </div>
08c1efbe
C
38 </div>
39</div>