]>
Commit | Line | Data |
---|---|---|
67264e06 C |
1 | <div *ngIf="account" class="root"> |
2 | <div class="account-info"> | |
3 | ||
4 | <div class="account-avatar-row"> | |
746018f6 | 5 | <my-actor-avatar class="main-avatar" [account]="account"></my-actor-avatar> |
67264e06 C |
6 | |
7 | <div> | |
2f6a237f | 8 | <div class="section-label" i18n>ACCOUNT</div> |
67264e06 C |
9 | |
10 | <div class="actor-info"> | |
11 | <div> | |
12 | <div class="actor-display-name"> | |
ace396c4 | 13 | <h1 i18n-title [title]="'Created on ' + (account.createdAt | date)">{{ account.displayName }}</h1> |
67264e06 C |
14 | |
15 | <my-user-moderation-dropdown | |
16 | [prependActions]="prependModerationActions" | |
17 | buttonSize="small" [account]="account" [user]="accountUser" placement="bottom-left auto" | |
18 | (userChanged)="onUserChanged()" (userDeleted)="onUserDeleted()" | |
19 | ></my-user-moderation-dropdown> | |
20 | ||
21 | <span *ngIf="accountUser?.blocked" [ngbTooltip]="accountUser.blockedReason" class="badge badge-danger" i18n>Banned</span> | |
22 | <span *ngIf="account.mutedByUser" class="badge badge-danger" i18n>Muted</span> | |
23 | <span *ngIf="account.mutedServerByUser" class="badge badge-danger" i18n>Instance muted</span> | |
24 | <span *ngIf="account.mutedByInstance" class="badge badge-danger" i18n>Muted by your instance</span> | |
25 | <span *ngIf="account.mutedServerByInstance" class="badge badge-danger" i18n>Instance muted by your instance</span> | |
26 | </div> | |
27 | ||
28 | <div class="actor-handle"> | |
29 | <span>@{{ account.nameWithHost }}</span> | |
30 | <button [cdkCopyToClipboard]="account.nameWithHostForced" (click)="activateCopiedMessage()" | |
31 | class="btn btn-outline-secondary btn-sm copy-button" title="Copy account handle" i18n-title | |
32 | > | |
33 | <span class="glyphicon glyphicon-duplicate"></span> | |
34 | </button> | |
35 | </div> | |
36 | ||
37 | <div class="actor-counters"> | |
38 | <span i18n>{naiveAggregatedSubscribers(), plural, =1 {1 subscriber} other {{{ naiveAggregatedSubscribers() }} subscribers}}</span> | |
39 | ||
40 | <span class="videos-count" *ngIf="accountVideosCount !== undefined" i18n> | |
41 | {accountVideosCount, plural, =1 {1 videos} other {{{ accountVideosCount }} videos}} | |
42 | </span> | |
43 | </div> | |
e379f813 | 44 | </div> |
a004ff17 | 45 | </div> |
0626e7af | 46 | </div> |
67264e06 | 47 | </div> |
41eb700f | 48 | |
67264e06 C |
49 | <div class="description" [ngClass]="{ expanded: accountDescriptionExpanded }"> |
50 | <div class="description-html" [innerHTML]="accountDescriptionHTML"></div> | |
0626e7af C |
51 | </div> |
52 | ||
733dbc53 | 53 | <div *ngIf="hasShowMoreDescription()" class="show-more" role="button" |
67264e06 C |
54 | (click)="accountDescriptionExpanded = !accountDescriptionExpanded" |
55 | title="Show the complete description" i18n-title i18n | |
56 | > | |
57 | Show more... | |
58 | </div> | |
d3e91a5f | 59 | |
67264e06 | 60 | <div class="buttons"> |
900f7820 | 61 | <a *ngIf="isManageable()" routerLink="/my-account" class="peertube-button-link orange-button" i18n> |
67264e06 C |
62 | Manage account |
63 | </a> | |
37024082 | 64 | |
900f7820 | 65 | <my-subscribe-button *ngIf="hasVideoChannels() && !isManageable()" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button> |
0626e7af C |
66 | </div> |
67 | </div> | |
68 | ||
dd24f1bb | 69 | <div class="links" [ngClass]="{ 'on-channel-page': isOnChannelPage() }"> |
67264e06 C |
70 | <ng-template #linkTemplate let-item="item"> |
71 | <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a> | |
72 | </ng-template> | |
73 | ||
9df52d66 | 74 | <my-list-overflow [hidden]="hideMenu" [items]="links" [itemTemplate]="linkTemplate"></my-list-overflow> |
67264e06 | 75 | |
9df52d66 | 76 | <my-simple-search-input |
67264e06 C |
77 | [alwaysShow]="!isInSmallView()" (searchChanged)="searchChanged($event)" |
78 | (inputDisplayChanged)="onSearchInputDisplayChanged($event)" name="search-videos" | |
79 | i18n-iconTitle icon-title="Search account videos" | |
80 | i18n-placeholder placeholder="Search account videos" | |
9df52d66 | 81 | ></my-simple-search-input> |
0626e7af | 82 | </div> |
67264e06 | 83 | |
dd24f1bb | 84 | <router-outlet></router-outlet> |
0626e7af | 85 | </div> |
cfde28ba C |
86 | |
87 | <ng-container *ngIf="prependModerationActions"> | |
88 | <my-account-report #accountReportModal [account]="account"></my-account-report> | |
89 | </ng-container> |