]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-library/+my-video-channels/my-video-channels.component.html
2ed0c93d68ae5a50fe8d58548af0fc0f9139457d
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / +my-video-channels / my-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 <span class="badge badge-secondary">{{ totalItems }}</span>
5 </h1>
6
7 <div class="video-channels-header d-flex justify-content-between">
8 <div class="has-feedback has-clear">
9 <input type="text" placeholder="Search your channels" i18n-placeholder [(ngModel)]="channelsSearch"
10 (ngModelChange)="onChannelsSearchChanged()" />
11 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
12 <span class="sr-only" i18n>Clear filters</span>
13 </div>
14
15 <a class="create-button" routerLink="create">
16 <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
17 <ng-container i18n>Create video channel</ng-container>
18 </a>
19 </div>
20
21 <div class="video-channels">
22 <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel">
23 <my-actor-avatar [channel]="videoChannel" [internalHref]="[ '/video-channels', videoChannel.nameWithHost ]"></my-actor-avatar>
24
25 <div class="video-channel-info">
26 <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
27 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
28 <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
29 </a>
30
31 <div i18n class="video-channel-followers">{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div>
32
33 <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div>
34
35 <div class="video-channel-buttons">
36 <my-edit-button label [routerLink]="[ 'update', videoChannel.nameWithHost ]"></my-edit-button>
37 <my-delete-button label (click)="deleteVideoChannel(videoChannel)"></my-delete-button>
38 </div>
39
40 <div *ngIf="!isInSmallView" class="w-100 d-flex justify-content-end">
41 <p-chart *ngIf="chartOptions && videoChannelsChartData && videoChannelsChartData[i]" type="line" [data]="videoChannelsChartData[i]" [options]="chartOptions" width="40vw" height="100px"></p-chart>
42 </div>
43 </div>
44 </div>
45 </div>