1
0
Fork 0
peertube/client/src/app/+accounts/accounts.component.html

92 lines
3.9 KiB
HTML
Raw Normal View History

2021-03-26 12:20:37 +00:00
<div *ngIf="account" class="root">
<div class="account-info">
<div class="account-avatar-row">
<img class="account-avatar" [src]="account.avatarUrl" alt="Avatar" />
<div>
<div class="section-label" i18n>PEERTUBE ACCOUNT</div>
<div class="actor-info">
<div>
<div class="actor-display-name">
<h1>{{ account.displayName }}</h1>
<my-user-moderation-dropdown
[prependActions]="prependModerationActions"
buttonSize="small" [account]="account" [user]="accountUser" placement="bottom-left auto"
(userChanged)="onUserChanged()" (userDeleted)="onUserDeleted()"
></my-user-moderation-dropdown>
<span *ngIf="accountUser?.blocked" [ngbTooltip]="accountUser.blockedReason" class="badge badge-danger" i18n>Banned</span>
<span *ngIf="account.mutedByUser" class="badge badge-danger" i18n>Muted</span>
<span *ngIf="account.mutedServerByUser" class="badge badge-danger" i18n>Instance muted</span>
<span *ngIf="account.mutedByInstance" class="badge badge-danger" i18n>Muted by your instance</span>
<span *ngIf="account.mutedServerByInstance" class="badge badge-danger" i18n>Instance muted by your instance</span>
</div>
<div class="actor-handle">
<span>@{{ account.nameWithHost }}</span>
<button [cdkCopyToClipboard]="account.nameWithHostForced" (click)="activateCopiedMessage()"
class="btn btn-outline-secondary btn-sm copy-button" title="Copy account handle" i18n-title
>
<span class="glyphicon glyphicon-duplicate"></span>
</button>
</div>
<div class="actor-counters">
<span i18n>{naiveAggregatedSubscribers(), plural, =1 {1 subscriber} other {{{ naiveAggregatedSubscribers() }} subscribers}}</span>
<span class="videos-count" *ngIf="accountVideosCount !== undefined" i18n>
{accountVideosCount, plural, =1 {1 videos} other {{{ accountVideosCount }} videos}}
</span>
</div>
</div>
</div>
2018-04-24 13:10:54 +00:00
</div>
2021-03-26 12:20:37 +00:00
</div>
2021-03-26 12:20:37 +00:00
<div class="description" [ngClass]="{ expanded: accountDescriptionExpanded }">
<div class="description-html" [innerHTML]="accountDescriptionHTML"></div>
<div class="created-at" i18n>Account created on {{ account.createdAt | date }}</div>
2018-04-24 13:10:54 +00:00
</div>
2021-03-26 12:20:37 +00:00
<div *ngIf="!accountDescriptionExpanded" class="show-more" role="button"
(click)="accountDescriptionExpanded = !accountDescriptionExpanded"
title="Show the complete description" i18n-title i18n
>
Show more...
</div>
2018-04-25 13:43:19 +00:00
2021-03-26 12:20:37 +00:00
<div class="buttons">
<a *ngIf="isManageable() && !isInSmallView()" routerLink="/my-account" class="peertube-button-link orange-button" i18n>
Manage account
</a>
2021-03-26 12:20:37 +00:00
<my-subscribe-button *ngIf="videoChannels" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button>
2018-04-24 13:10:54 +00:00
</div>
</div>
2021-03-26 12:20:37 +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 [hidden]="hideMenu" [items]="links" [itemTemplate]="linkTemplate"></list-overflow>
<simple-search-input
[alwaysShow]="!isInSmallView()" (searchChanged)="searchChanged($event)"
(inputDisplayChanged)="onSearchInputDisplayChanged($event)" name="search-videos"
i18n-iconTitle icon-title="Search account videos"
i18n-placeholder placeholder="Search account videos"
></simple-search-input>
2018-04-24 13:10:54 +00:00
</div>
2021-03-26 12:20:37 +00:00
<router-outlet (activate)="onOutletLoaded($event)"></router-outlet>
2018-04-24 13:10:54 +00:00
</div>
2020-07-09 13:54:24 +00:00
<ng-container *ngIf="prependModerationActions">
<my-account-report #accountReportModal [account]="account"></my-account-report>
</ng-container>