]>
Commit | Line | Data |
---|---|---|
60c35932 | 1 | <div class="root" *ngIf="videoChannel"> |
02dd4f3c C |
2 | <div class="banner" *ngIf="videoChannel.bannerUrl"> |
3 | <img [src]="videoChannel.bannerUrl" alt="Channel banner"> | |
4 | </div> | |
5 | ||
60c35932 | 6 | <div class="channel-info"> |
170726f5 | 7 | |
60c35932 | 8 | <ng-template #buttonsTemplate> |
900f7820 | 9 | <a *ngIf="isManageable()" [routerLink]="[ '/my-library/video-channels/update', videoChannel.nameWithHost ]" class="peertube-button-link orange-button" i18n> |
60c35932 C |
10 | Manage channel |
11 | </a> | |
12 | ||
900f7820 | 13 | <my-subscribe-button *ngIf="!isManageable()" #subscribeButton [videoChannels]="[videoChannel]"></my-subscribe-button> |
100d9ce2 C |
14 | |
15 | <button *ngIf="videoChannel.support" (click)="showSupportModal()" class="support-button peertube-button orange-button-inverted"> | |
16 | <my-global-icon iconName="support" aria-hidden="true"></my-global-icon> | |
17 | <span class="icon-text" i18n>Support</span> | |
18 | </button> | |
60c35932 C |
19 | </ng-template> |
20 | ||
21 | <ng-template #ownerTemplate> | |
22 | <div class="owner-block"> | |
1748e92a C |
23 | <div class="section-label" i18n>OWNER ACCOUNT</div> |
24 | ||
60c35932 | 25 | <div class="avatar-row"> |
fbdcd4ec | 26 | <my-account-avatar [account]="videoChannel.ownerAccount" size="120"></my-account-avatar> |
27 | ||
60c35932 | 28 | <div class="actor-info"> |
733dbc53 C |
29 | <h4> |
30 | <a [routerLink]="getAccountUrl()" title="View account" i18n-title>{{ videoChannel.ownerAccount.displayName }}</a> | |
31 | </h4> | |
170726f5 | 32 | |
60c35932 | 33 | <div class="actor-handle">@{{ videoChannel.ownerBy }}</div> |
a0dedc02 | 34 | </div> |
9b8a7aa8 | 35 | </div> |
22a16e36 | 36 | |
60c35932 C |
37 | <div class="owner-description"> |
38 | <div class="description-html" [innerHTML]="ownerDescriptionHTML"></div> | |
7de6afdf | 39 | </div> |
a4f99a76 | 40 | |
733dbc53 | 41 | <a class="view-account short" [routerLink]="getAccountUrl()" i18n> |
60c35932 C |
42 | View account |
43 | </a> | |
44 | ||
733dbc53 | 45 | <a class="view-account complete" [routerLink]="getAccountUrl()" i18n> |
60c35932 C |
46 | View owner account |
47 | </a> | |
48 | </div> | |
49 | </ng-template> | |
50 | ||
51 | <div class="channel-avatar-row"> | |
900f7820 | 52 | <img class="channel-avatar" [src]="videoChannel.avatarUrl" alt="Avatar" /> |
60c35932 C |
53 | |
54 | <div> | |
55 | <div class="section-label" i18n>VIDEO CHANNEL</div> | |
56 | ||
57 | <div class="actor-info"> | |
58 | <div> | |
59 | <div class="actor-display-name"> | |
ace396c4 | 60 | <h1 i18n-title [title]="'Channel created on ' + (videoChannel.createdAt | date)">{{ videoChannel.displayName }}</h1> |
60c35932 C |
61 | </div> |
62 | ||
63 | <div class="actor-handle"> | |
64 | <span>@{{ videoChannel.nameWithHost }}</span> | |
65 | <button [cdkCopyToClipboard]="videoChannel.nameWithHostForced" (click)="activateCopiedMessage()" | |
66 | class="btn btn-outline-secondary btn-sm copy-button" title="Copy channel handle" i18n-title | |
67 | > | |
68 | <span class="glyphicon glyphicon-duplicate"></span> | |
69 | </button> | |
70 | </div> | |
71 | ||
72 | <div class="actor-counters"> | |
73 | <span i18n>{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</span> | |
74 | ||
75 | <span class="videos-count" *ngIf="channelVideosCount !== undefined" i18n> | |
76 | {channelVideosCount, plural, =1 {1 videos} other {{{ channelVideosCount }} videos}} | |
77 | </span> | |
78 | </div> | |
79 | </div> | |
34450e1e | 80 | |
60c35932 C |
81 | <div class="channel-buttons right"> |
82 | <ng-template *ngTemplateOutlet="buttonsTemplate"></ng-template> | |
83 | </div> | |
9b8a7aa8 | 84 | </div> |
170726f5 C |
85 | </div> |
86 | </div> | |
87 | ||
60c35932 C |
88 | <div class="channel-description" [ngClass]="{ expanded: channelDescriptionExpanded }"> |
89 | <div class="description-html" [innerHTML]="channelDescriptionHTML"></div> | |
60c35932 | 90 | </div> |
24e7916c | 91 | |
733dbc53 | 92 | <div *ngIf="hasShowMoreDescription()" class="show-more" role="button" |
60c35932 C |
93 | (click)="channelDescriptionExpanded = !channelDescriptionExpanded" |
94 | title="Show the complete description" i18n-title i18n | |
95 | > | |
96 | Show more... | |
170726f5 | 97 | </div> |
60c35932 C |
98 | |
99 | <div class="channel-buttons bottom"> | |
100 | <ng-template *ngTemplateOutlet="buttonsTemplate"></ng-template> | |
101 | </div> | |
102 | ||
103 | <div class="owner-card"> | |
60c35932 C |
104 | <ng-template *ngTemplateOutlet="ownerTemplate"></ng-template> |
105 | </div> | |
106 | </div> | |
107 | ||
108 | <div class="bottom-owner"> | |
60c35932 | 109 | <ng-template *ngTemplateOutlet="ownerTemplate"></ng-template> |
170726f5 C |
110 | </div> |
111 | ||
60c35932 C |
112 | <div class="links"> |
113 | <ng-template #linkTemplate let-item="item"> | |
114 | <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a> | |
115 | </ng-template> | |
116 | ||
117 | <list-overflow [items]="links" [itemTemplate]="linkTemplate"></list-overflow> | |
170726f5 | 118 | </div> |
60c35932 C |
119 | |
120 | <router-outlet></router-outlet> | |
170726f5 | 121 | </div> |
100d9ce2 C |
122 | |
123 | <my-support-modal #supportModal [videoChannel]="videoChannel"></my-support-modal> |