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