]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-library/+my-video-channels/my-video-channels.component.html
aa51764be6442734ff6cba5163244b8a46b6d9e4
[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 *ngIf="totalItems" class="pt-badge badge-secondary">{{ totalItems }}</span>
5 </h1>
6
7 <my-channels-setup-message [hideLink]="true"></my-channels-setup-message>
8
9 <div class="video-channels-header d-flex justify-content-between">
10 <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter>
11
12 <a class="create-button" routerLink="/manage/create">
13 <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
14 <ng-container i18n>Create video channel</ng-container>
15 </a>
16 </div>
17
18 <div class="no-results" i18n *ngIf="totalItems === 0">No channel found.</div>
19
20 <div class="video-channels">
21 <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel">
22 <my-actor-avatar [channel]="videoChannel" [internalHref]="[ '/c', videoChannel.nameWithHost ]" size="80"></my-actor-avatar>
23
24 <div class="video-channel-info">
25 <a [routerLink]="[ '/c', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
26 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
27 <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
28 </a>
29
30 <a
31 i18n class="video-channel-followers"
32 [routerLink]="[ '/my-library', 'followers' ]" [queryParams]="{ search: 'channel:' + videoChannel.name }"
33 >
34 {videoChannel.followersCount, plural, =0 {No subscribers} =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}
35 </a>
36
37 <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div>
38
39 <div i18n class="video-channel-views">{videoChannel.totalViews, plural, =0 {No views} =1 {1 view} other {{{ videoChannel.totalViews }} views}}</div>
40
41 <div class="video-channel-buttons">
42 <my-edit-button label [routerLink]="[ '/manage/update', videoChannel.nameWithHost ]"></my-edit-button>
43 <my-delete-button label (click)="deleteVideoChannel(videoChannel)"></my-delete-button>
44 </div>
45
46 <div *ngIf="!isInSmallView" class="w-100 d-flex justify-content-end chart-container">
47 <div myDeferLoading>
48 <ng-template>
49 <p-chart
50 *ngIf="chartOptions && videoChannelsChartData && videoChannelsChartData[i]"
51 width="40vw" height="100px"
52 type="line" [data]="videoChannelsChartData[i]" [options]="chartOptions"
53 ></p-chart>
54 </ng-template>
55 </div>
56 </div>
57 </div>
58 </div>
59 </div>