]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+accounts/accounts.component.html
Channel/account page redesign feedbacks
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts.component.html
1 <div *ngIf="account" class="root">
2 <div class="account-info">
3
4 <div class="account-avatar-row">
5 <img class="account-avatar" [src]="account.avatarUrl" alt="Avatar" />
6
7 <div>
8 <div class="section-label" i18n>PEERTUBE ACCOUNT</div>
9
10 <div class="actor-info">
11 <div>
12 <div class="actor-display-name">
13 <h1>{{ account.displayName }}</h1>
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>
44 </div>
45 </div>
46 </div>
47 </div>
48
49 <div class="description" [ngClass]="{ expanded: accountDescriptionExpanded }">
50 <div class="description-html" [innerHTML]="accountDescriptionHTML"></div>
51
52 <div class="created-at" i18n>Account created on {{ account.createdAt | date }}</div>
53 </div>
54
55 <div *ngIf="hasShowMoreDescription()" class="show-more" role="button"
56 (click)="accountDescriptionExpanded = !accountDescriptionExpanded"
57 title="Show the complete description" i18n-title i18n
58 >
59 Show more...
60 </div>
61
62 <div class="buttons">
63 <a *ngIf="isManageable()" routerLink="/my-account" class="peertube-button-link orange-button" i18n>
64 Manage account
65 </a>
66
67 <my-subscribe-button *ngIf="hasVideoChannels() && !isManageable()" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button>
68 </div>
69 </div>
70
71 <div class="links">
72 <ng-template #linkTemplate let-item="item">
73 <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a>
74 </ng-template>
75
76 <list-overflow [hidden]="hideMenu" [items]="links" [itemTemplate]="linkTemplate"></list-overflow>
77
78 <simple-search-input
79 [alwaysShow]="!isInSmallView()" (searchChanged)="searchChanged($event)"
80 (inputDisplayChanged)="onSearchInputDisplayChanged($event)" name="search-videos"
81 i18n-iconTitle icon-title="Search account videos"
82 i18n-placeholder placeholder="Search account videos"
83 ></simple-search-input>
84 </div>
85
86 <router-outlet (activate)="onOutletLoaded($event)"></router-outlet>
87 </div>
88
89 <ng-container *ngIf="prependModerationActions">
90 <my-account-report #accountReportModal [account]="account"></my-account-report>
91 </ng-container>