]>
Commit | Line | Data |
---|---|---|
d607fc24 | 1 | <h1> |
cd262619 C |
2 | <my-global-icon iconName="channel" aria-hidden="true"></my-global-icon> |
3 | <ng-container i18n>My channels</ng-container> | |
4c8749cb | 4 | <span *ngIf="totalItems" class="pt-badge badge-secondary">{{ totalItems }}</span> |
d607fc24 | 5 | </h1> |
4f5d0459 | 6 | |
7dca45f9 MK |
7 | <my-channels-setup-message [hideLink]="true"></my-channels-setup-message> |
8 | ||
d607fc24 | 9 | <div class="video-channels-header d-flex justify-content-between"> |
2e46eb97 | 10 | <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter> |
ed5bb517 | 11 | |
a37e9e74 | 12 | <a class="create-button" routerLink="/manage/create"> |
6ad971d5 | 13 | <my-global-icon iconName="add" aria-hidden="true"></my-global-icon> |
8c966daa | 14 | <ng-container i18n>Create video channel</ng-container> |
08c1efbe | 15 | </a> |
d607fc24 | 16 | </div> |
08c1efbe | 17 | |
1de87401 C |
18 | <div class="no-results" i18n *ngIf="totalItems === 0">No channel found.</div> |
19 | ||
08c1efbe | 20 | <div class="video-channels"> |
8165d00a | 21 | <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel"> |
d0800f76 | 22 | <my-actor-avatar [channel]="videoChannel" [internalHref]="[ '/c', videoChannel.nameWithHost ]" size="80"></my-actor-avatar> |
08c1efbe C |
23 | |
24 | <div class="video-channel-info"> | |
71887396 | 25 | <a [routerLink]="[ '/c', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page"> |
08c1efbe | 26 | <div class="video-channel-display-name">{{ videoChannel.displayName }}</div> |
f5b0af50 | 27 | <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div> |
08c1efbe C |
28 | </a> |
29 | ||
4beda9e1 C |
30 | <a |
31 | i18n class="video-channel-followers" | |
32 | [routerLink]="[ '/my-library', 'followers' ]" [queryParams]="{ search: 'channel:' + videoChannel.name }" | |
33 | > | |
f823637d | 34 | {videoChannel.followersCount, plural, =0 {No subscribers} =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}} |
4beda9e1 | 35 | </a> |
8165d00a | 36 | |
5b0ec7cd C |
37 | <div class="d-flex"> |
38 | <span i18n>{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</span> | |
39 | <span class="mx-1">ยท</span> | |
40 | <span i18n>{videoChannel.totalViews, plural, =0 {No views} =1 {1 view} other {{{ videoChannel.totalViews | myNumberFormatter }} views}}</span> | |
41 | </div> | |
c6f8ca4d | 42 | |
8a3183e5 | 43 | <div class="video-channel-buttons"> |
a37e9e74 | 44 | <my-edit-button label [routerLink]="[ '/manage/update', videoChannel.nameWithHost ]"></my-edit-button> |
30814423 | 45 | <my-delete-button label (click)="deleteVideoChannel(videoChannel)"></my-delete-button> |
8a3183e5 K |
46 | </div> |
47 | ||
439b6b7b C |
48 | <div *ngIf="!isInSmallView" class="w-100 d-flex justify-content-end chart-container"> |
49 | <div myDeferLoading> | |
50 | <ng-template> | |
51 | <p-chart | |
52 | *ngIf="chartOptions && videoChannelsChartData && videoChannelsChartData[i]" | |
53 | width="40vw" height="100px" | |
54 | type="line" [data]="videoChannelsChartData[i]" [options]="chartOptions" | |
55 | ></p-chart> | |
56 | </ng-template> | |
57 | </div> | |
8165d00a | 58 | </div> |
08c1efbe | 59 | </div> |
08c1efbe C |
60 | </div> |
61 | </div> |