]>
Commit | Line | Data |
---|---|---|
1 | <div *ngIf="account" class="root"> | |
2 | <div class="account-info d-md-grid d-block"> | |
3 | ||
4 | <div class="account-avatar-row"> | |
5 | <my-actor-avatar class="main-avatar" actorType="account" [actor]="account"></my-actor-avatar> | |
6 | ||
7 | <div> | |
8 | <div class="section-label" i18n>ACCOUNT</div> | |
9 | ||
10 | <div class="actor-info"> | |
11 | <div> | |
12 | <div class="actor-display-name align-items-center"> | |
13 | <h1 i18n-title [title]="'Created on ' + (account.createdAt | date)">{{ account.displayName }}</h1> | |
14 | ||
15 | <my-user-moderation-dropdown | |
16 | class="mx-3" 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="pt-badge badge-danger" i18n>Banned</span> | |
22 | ||
23 | <my-account-block-badges [account]="account"></my-account-block-badges> | |
24 | </div> | |
25 | ||
26 | <div class="actor-handle"> | |
27 | <span>@{{ account.nameWithHost }}</span> | |
28 | <button [cdkCopyToClipboard]="account.nameWithHostForced" (click)="activateCopiedMessage()" | |
29 | class="btn btn-outline-secondary btn-sm copy-button" title="Copy account handle" i18n-title | |
30 | > | |
31 | <my-global-icon iconName="copy"></my-global-icon> | |
32 | </button> | |
33 | </div> | |
34 | ||
35 | <div class="actor-counters"> | |
36 | <span i18n>{naiveAggregatedSubscribers(), plural, =0 {No subscribers} =1 {1 subscriber} other {{{ naiveAggregatedSubscribers() }} subscribers}}</span> | |
37 | ||
38 | <span class="videos-count" *ngIf="accountVideosCount !== undefined" i18n> | |
39 | {accountVideosCount, plural, =0 {No videos} =1 {1 video} other {{{ accountVideosCount }} videos}} | |
40 | </span> | |
41 | </div> | |
42 | </div> | |
43 | </div> | |
44 | </div> | |
45 | </div> | |
46 | ||
47 | <div class="description" [ngClass]="{ expanded: accountDescriptionExpanded }"> | |
48 | <div class="description-html" [innerHTML]="accountDescriptionHTML"></div> | |
49 | </div> | |
50 | ||
51 | <div *ngIf="hasShowMoreDescription()" class="show-more d-md-none d-block" role="button" | |
52 | (click)="accountDescriptionExpanded = !accountDescriptionExpanded" | |
53 | title="Show the complete description" i18n-title i18n | |
54 | > | |
55 | Show more... | |
56 | </div> | |
57 | ||
58 | <div class="buttons"> | |
59 | <a *ngIf="isManageable()" routerLink="/my-account" class="peertube-button-link orange-button" i18n> | |
60 | Manage account | |
61 | </a> | |
62 | ||
63 | <my-subscribe-button *ngIf="hasVideoChannels() && !isManageable()" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button> | |
64 | </div> | |
65 | </div> | |
66 | ||
67 | <div class="links" [ngClass]="{ 'on-channel-page': isOnChannelPage() }"> | |
68 | <ng-template #linkTemplate let-item="item"> | |
69 | <a [routerLink]="item.routerLink" routerLinkActive="active" class="sub-menu-entry">{{ item.label }}</a> | |
70 | </ng-template> | |
71 | ||
72 | <my-list-overflow [hidden]="hideMenu" [items]="links" [itemTemplate]="linkTemplate"></my-list-overflow> | |
73 | ||
74 | <my-simple-search-input | |
75 | [alwaysShow]="!isInSmallView()" (searchChanged)="searchChanged($event)" | |
76 | (inputDisplayChanged)="onSearchInputDisplayChanged($event)" name="search-videos" | |
77 | i18n-iconTitle icon-title="Search account videos" | |
78 | i18n-placeholder placeholder="Search account videos" | |
79 | ></my-simple-search-input> | |
80 | </div> | |
81 | ||
82 | <router-outlet></router-outlet> | |
83 | </div> | |
84 | ||
85 | <ng-container *ngIf="prependModerationActions"> | |
86 | <my-account-report #accountReportModal></my-account-report> | |
87 | </ng-container> |