]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/accounts.component.html
Support ICU in TS components
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts.component.html
CommitLineData
67264e06
C
1<div *ngIf="account" class="root">
2 <div class="account-info">
3
4 <div class="account-avatar-row">
4428ad54 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>
80badf49
C
22
23 <my-account-block-badges [account]="account"></my-account-block-badges>
67264e06
C
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 <span class="glyphicon glyphicon-duplicate"></span>
32 </button>
33 </div>
34
35 <div class="actor-counters">
eaa52952 36 <span i18n>{naiveAggregatedSubscribers(), plural, =0 {No subscribers} =1 {1 subscriber} other {{{ naiveAggregatedSubscribers() }} subscribers}}</span>
67264e06
C
37
38 <span class="videos-count" *ngIf="accountVideosCount !== undefined" i18n>
eaa52952 39 {accountVideosCount, plural, =0 {No videos} =1 {1 video} other {{{ accountVideosCount }} videos}}
67264e06
C
40 </span>
41 </div>
e379f813 42 </div>
a004ff17 43 </div>
0626e7af 44 </div>
67264e06 45 </div>
41eb700f 46
67264e06
C
47 <div class="description" [ngClass]="{ expanded: accountDescriptionExpanded }">
48 <div class="description-html" [innerHTML]="accountDescriptionHTML"></div>
0626e7af
C
49 </div>
50
733dbc53 51 <div *ngIf="hasShowMoreDescription()" class="show-more" role="button"
67264e06
C
52 (click)="accountDescriptionExpanded = !accountDescriptionExpanded"
53 title="Show the complete description" i18n-title i18n
54 >
55 Show more...
56 </div>
d3e91a5f 57
67264e06 58 <div class="buttons">
900f7820 59 <a *ngIf="isManageable()" routerLink="/my-account" class="peertube-button-link orange-button" i18n>
67264e06
C
60 Manage account
61 </a>
37024082 62
900f7820 63 <my-subscribe-button *ngIf="hasVideoChannels() && !isManageable()" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button>
0626e7af
C
64 </div>
65 </div>
66
dd24f1bb 67 <div class="links" [ngClass]="{ 'on-channel-page': isOnChannelPage() }">
67264e06
C
68 <ng-template #linkTemplate let-item="item">
69 <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a>
70 </ng-template>
71
9df52d66 72 <my-list-overflow [hidden]="hideMenu" [items]="links" [itemTemplate]="linkTemplate"></my-list-overflow>
67264e06 73
9df52d66 74 <my-simple-search-input
67264e06
C
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"
9df52d66 79 ></my-simple-search-input>
0626e7af 80 </div>
67264e06 81
dd24f1bb 82 <router-outlet></router-outlet>
0626e7af 83</div>
cfde28ba
C
84
85<ng-container *ngIf="prependModerationActions">
ae9809a7 86 <my-account-report #accountReportModal></my-account-report>
cfde28ba 87</ng-container>