2021-03-25 08:42:55 -04:00
|
|
|
<div class="root" *ngIf="videoChannel">
|
2021-04-08 03:13:42 -04:00
|
|
|
<div class="banner" *ngIf="videoChannel.bannerUrl">
|
|
|
|
<img [src]="videoChannel.bannerUrl" alt="Channel banner">
|
|
|
|
</div>
|
|
|
|
|
2021-03-25 08:42:55 -04:00
|
|
|
<div class="channel-info">
|
2018-04-25 10:56:13 -04:00
|
|
|
|
2021-03-25 08:42:55 -04:00
|
|
|
<ng-template #buttonsTemplate>
|
2021-03-26 10:53:18 -04:00
|
|
|
<a *ngIf="isManageable()" [routerLink]="[ '/my-library/video-channels/update', videoChannel.nameWithHost ]" class="peertube-button-link orange-button" i18n>
|
2021-03-25 08:42:55 -04:00
|
|
|
Manage channel
|
|
|
|
</a>
|
|
|
|
|
2021-03-26 10:53:18 -04:00
|
|
|
<my-subscribe-button *ngIf="!isManageable()" #subscribeButton [videoChannels]="[videoChannel]"></my-subscribe-button>
|
2021-03-29 09:56:01 -04:00
|
|
|
|
|
|
|
<button *ngIf="videoChannel.support" (click)="showSupportModal()" class="support-button peertube-button orange-button-inverted">
|
|
|
|
<my-global-icon iconName="support" aria-hidden="true"></my-global-icon>
|
|
|
|
<span class="icon-text" i18n>Support</span>
|
|
|
|
</button>
|
2021-03-25 08:42:55 -04:00
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template #ownerTemplate>
|
|
|
|
<div class="owner-block">
|
|
|
|
<div class="avatar-row">
|
2021-03-31 02:59:52 -04:00
|
|
|
<a [routerLink]="getAccountUrl()" title="View account" i18n-title>
|
|
|
|
<img class="account-avatar" [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" />
|
|
|
|
</a>
|
2021-03-25 08:42:55 -04:00
|
|
|
|
|
|
|
<div class="actor-info">
|
2021-03-31 02:59:52 -04:00
|
|
|
<h4>
|
|
|
|
<a [routerLink]="getAccountUrl()" title="View account" i18n-title>{{ videoChannel.ownerAccount.displayName }}</a>
|
|
|
|
</h4>
|
2018-04-25 10:56:13 -04:00
|
|
|
|
2021-03-25 08:42:55 -04:00
|
|
|
<div class="actor-handle">@{{ videoChannel.ownerBy }}</div>
|
2019-12-16 16:13:07 -05:00
|
|
|
</div>
|
2020-02-04 10:44:53 -05:00
|
|
|
</div>
|
2018-08-21 10:18:59 -04:00
|
|
|
|
2021-03-25 08:42:55 -04:00
|
|
|
<div class="owner-description">
|
|
|
|
<div class="description-html" [innerHTML]="ownerDescriptionHTML"></div>
|
2018-04-26 04:22:48 -04:00
|
|
|
</div>
|
2018-05-23 05:38:00 -04:00
|
|
|
|
2021-03-31 02:59:52 -04:00
|
|
|
<a class="view-account short" [routerLink]="getAccountUrl()" i18n>
|
2021-03-25 08:42:55 -04:00
|
|
|
View account
|
|
|
|
</a>
|
|
|
|
|
2021-03-31 02:59:52 -04:00
|
|
|
<a class="view-account complete" [routerLink]="getAccountUrl()" i18n>
|
2021-03-25 08:42:55 -04:00
|
|
|
View owner account
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<div class="channel-avatar-row">
|
2021-03-26 10:53:18 -04:00
|
|
|
<img class="channel-avatar" [src]="videoChannel.avatarUrl" alt="Avatar" />
|
2021-03-25 08:42:55 -04:00
|
|
|
|
|
|
|
<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>
|
2020-03-19 05:29:43 -04:00
|
|
|
|
2021-03-25 08:42:55 -04:00
|
|
|
<div class="channel-buttons right">
|
|
|
|
<ng-template *ngTemplateOutlet="buttonsTemplate"></ng-template>
|
|
|
|
</div>
|
2020-02-04 10:44:53 -05:00
|
|
|
</div>
|
2018-04-25 10:56:13 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-03-25 08:42:55 -04:00
|
|
|
<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>
|
2020-02-05 14:54:37 -05:00
|
|
|
|
2021-03-31 02:59:52 -04:00
|
|
|
<div *ngIf="hasShowMoreDescription()" class="show-more" role="button"
|
2021-03-25 08:42:55 -04:00
|
|
|
(click)="channelDescriptionExpanded = !channelDescriptionExpanded"
|
|
|
|
title="Show the complete description" i18n-title i18n
|
|
|
|
>
|
|
|
|
Show more...
|
2018-04-25 10:56:13 -04:00
|
|
|
</div>
|
2021-03-25 08:42:55 -04:00
|
|
|
|
|
|
|
<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>
|
2018-04-25 10:56:13 -04:00
|
|
|
</div>
|
|
|
|
|
2021-03-25 08:42:55 -04:00
|
|
|
<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>
|
2018-04-25 10:56:13 -04:00
|
|
|
</div>
|
2021-03-25 08:42:55 -04:00
|
|
|
|
|
|
|
<router-outlet></router-outlet>
|
2018-04-25 10:56:13 -04:00
|
|
|
</div>
|
2021-03-29 09:56:01 -04:00
|
|
|
|
|
|
|
<my-support-modal #supportModal [videoChannel]="videoChannel"></my-support-modal>
|