]>
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> | |
4 | <span class="badge badge-secondary">{{ totalItems }}</span> | |
d607fc24 | 5 | </h1> |
4f5d0459 | 6 | |
d607fc24 | 7 | <div class="video-channels-header d-flex justify-content-between"> |
2e46eb97 | 8 | <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter> |
ed5bb517 | 9 | |
08c1efbe | 10 | <a class="create-button" routerLink="create"> |
6ad971d5 | 11 | <my-global-icon iconName="add" aria-hidden="true"></my-global-icon> |
8c966daa | 12 | <ng-container i18n>Create video channel</ng-container> |
08c1efbe | 13 | </a> |
d607fc24 | 14 | </div> |
08c1efbe | 15 | |
1de87401 C |
16 | <div class="no-results" i18n *ngIf="totalItems === 0">No channel found.</div> |
17 | ||
08c1efbe | 18 | <div class="video-channels"> |
8165d00a | 19 | <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel"> |
746018f6 | 20 | <my-actor-avatar [channel]="videoChannel" [internalHref]="[ '/video-channels', videoChannel.nameWithHost ]"></my-actor-avatar> |
08c1efbe C |
21 | |
22 | <div class="video-channel-info"> | |
d6d951dd | 23 | <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page"> |
08c1efbe | 24 | <div class="video-channel-display-name">{{ videoChannel.displayName }}</div> |
f5b0af50 | 25 | <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div> |
08c1efbe C |
26 | </a> |
27 | ||
8165d00a RK |
28 | <div i18n class="video-channel-followers">{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div> |
29 | ||
1ba471c5 C |
30 | <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div> |
31 | ||
8a3183e5 | 32 | <div class="video-channel-buttons"> |
30814423 K |
33 | <my-edit-button label [routerLink]="[ 'update', videoChannel.nameWithHost ]"></my-edit-button> |
34 | <my-delete-button label (click)="deleteVideoChannel(videoChannel)"></my-delete-button> | |
8a3183e5 K |
35 | </div> |
36 | ||
8165d00a | 37 | <div *ngIf="!isInSmallView" class="w-100 d-flex justify-content-end"> |
4f926722 | 38 | <p-chart *ngIf="chartOptions && videoChannelsChartData && videoChannelsChartData[i]" type="line" [data]="videoChannelsChartData[i]" [options]="chartOptions" width="40vw" height="100px"></p-chart> |
8165d00a | 39 | </div> |
08c1efbe | 40 | </div> |
08c1efbe C |
41 | </div> |
42 | </div> |