]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html
Improve navigation sub-menu and tabs effects (#2971)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / +my-account-video-channels / my-account-video-channels.component.html
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
6 <div class="video-channels-header">
7 <a class="create-button" routerLink="create">
8 <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
9 <ng-container i18n>Create video channel</ng-container>
10 </a>
11 </div>
12
13 <div class="video-channels">
14 <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel">
15 <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]">
16 <img [src]="videoChannel.avatarUrl" alt="Avatar" />
17 </a>
18
19 <div class="video-channel-info">
20 <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
21 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
22 <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
23 </a>
24
25 <div i18n class="video-channel-followers">{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div>
26
27 <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div>
28
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
34 <div *ngIf="!isInSmallView" class="w-100 d-flex justify-content-end">
35 <p-chart *ngIf="videoChannelsChartData && videoChannelsChartData[i]" type="line" [data]="videoChannelsChartData[i]" [options]="chartOptions" width="40vw" height="100px"></p-chart>
36 </div>
37 </div>
38 </div>
39 </div>