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