1
0
Fork 0
peertube/client/src/app/+video-channels/video-channels.component.html

122 lines
4.3 KiB
HTML
Raw Normal View History

2021-03-25 12:42:55 +00:00
<div class="root" *ngIf="videoChannel">
<div class="channel-info">
2018-04-25 14:56:13 +00:00
2021-03-25 12:42:55 +00:00
<ng-template #buttonsTemplate>
2021-03-26 14:53:18 +00:00
<a *ngIf="isManageable()" [routerLink]="[ '/my-library/video-channels/update', videoChannel.nameWithHost ]" class="peertube-button-link orange-button" i18n>
2021-03-25 12:42:55 +00:00
Manage channel
</a>
2021-03-26 14:53:18 +00:00
<my-subscribe-button *ngIf="!isManageable()" #subscribeButton [videoChannels]="[videoChannel]"></my-subscribe-button>
2021-03-29 13:56:01 +00: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 12:42:55 +00:00
</ng-template>
<ng-template #ownerTemplate>
<div class="owner-block">
<div class="avatar-row">
2021-03-26 14:53:18 +00:00
<img class="account-avatar" [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" />
2021-03-25 12:42:55 +00:00
<div class="actor-info">
<h4>{{ videoChannel.ownerAccount.displayName }}</h4>
2018-04-25 14:56:13 +00:00
2021-03-25 12:42:55 +00:00
<div class="actor-handle">@{{ videoChannel.ownerBy }}</div>
</div>
</div>
2018-08-21 14:18:59 +00:00
2021-03-25 12:42:55 +00:00
<div class="owner-description">
<div class="description-html" [innerHTML]="ownerDescriptionHTML"></div>
</div>
2018-05-23 09:38:00 +00:00
2021-03-25 12:42:55 +00:00
<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">
2021-03-26 14:53:18 +00:00
<img class="channel-avatar" [src]="videoChannel.avatarUrl" alt="Avatar" />
2021-03-25 12:42:55 +00: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 09:29:43 +00:00
2021-03-25 12:42:55 +00:00
<div class="channel-buttons right">
<ng-template *ngTemplateOutlet="buttonsTemplate"></ng-template>
</div>
</div>
2018-04-25 14:56:13 +00:00
</div>
</div>
2021-03-25 12:42:55 +00: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>
2021-03-25 12:42:55 +00:00
<div *ngIf="!channelDescriptionExpanded" class="show-more" role="button"
(click)="channelDescriptionExpanded = !channelDescriptionExpanded"
title="Show the complete description" i18n-title i18n
>
Show more...
2018-04-25 14:56:13 +00:00
</div>
2021-03-25 12:42:55 +00: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 14:56:13 +00:00
</div>
2021-03-25 12:42:55 +00: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 14:56:13 +00:00
</div>
2021-03-25 12:42:55 +00:00
<router-outlet></router-outlet>
2018-04-25 14:56:13 +00:00
</div>
2021-03-29 13:56:01 +00:00
<my-support-modal #supportModal [videoChannel]="videoChannel"></my-support-modal>