]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/accounts.component.html
Better display of accounts and channel pages on small screens
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts.component.html
CommitLineData
0626e7af
C
1<div *ngIf="account" class="row">
2 <div class="sub-menu">
3
170726f5 4 <div class="actor">
d3e91a5f 5 <img [src]="account.avatarUrl" alt="Avatar" />
0626e7af 6
170726f5 7 <div class="actor-info">
7de6afdf
C
8 <div class="actor-names">
9 <div class="actor-display-name">{{ account.displayName }}</div>
9b8a7aa8
RK
10 <div class="actor-name">
11 <span>{{ account.nameWithHost }}</span>
12 <button [cdkCopyToClipboard]="account.nameWithHostForced" (click)="activateCopiedMessage()"
13 class="btn btn-outline-secondary btn-sm copy-button"
14 >
15 <span class="glyphicon glyphicon-copy"></span>
16 </button>
e379f813 17 </div>
496b02e3 18 <span *ngIf="accountUser?.blocked" [ngbTooltip]="accountUser.blockedReason" class="badge badge-danger" i18n>Banned</span>
65b21c96 19 <span *ngIf="account.mutedByUser" class="badge badge-danger" i18n>Muted</span>
075942b2
C
20 <span *ngIf="account.mutedServerByUser" class="badge badge-danger" i18n>Instance muted</span>
21 <span *ngIf="account.mutedByInstance" class="badge badge-danger" i18n>Muted by your instance</span>
65b21c96 22 <span *ngIf="account.mutedServerByInstance" class="badge badge-danger" i18n>Instance muted by your instance</span>
79bd2632 23
af5767ff 24 <my-user-moderation-dropdown
496b02e3 25 buttonSize="small" [account]="account" [user]="accountUser" placement="bottom-left auto"
af5767ff 26 (userChanged)="onUserChanged()" (userDeleted)="onUserDeleted()"
aa0f1963 27 ></my-user-moderation-dropdown>
7de6afdf 28 </div>
496b02e3 29 <div class="actor-followers" [title]="accountFollowerTitle">
a004ff17
RK
30 {{ subscribersDisplayFor(naiveAggregatedSubscribers) }}
31 </div>
0626e7af 32 </div>
41eb700f 33
aa0f1963 34 <div class="right-buttons">
937b7a6a 35 <a *ngIf="isAccountManageable && !isInSmallView" routerLink="/my-account" class="btn btn-outline-tertiary mr-2" i18n>Manage</a>
aa0f1963
RK
36 <my-subscribe-button *ngIf="videoChannels" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button>
37 </div>
0626e7af
C
38 </div>
39
24e7916c
RK
40 <div class="links w-100">
41 <ng-template #linkTemplate let-item="item">
42 <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a>
43 </ng-template>
d3e91a5f 44
24e7916c 45 <list-overflow [items]="links" [itemTemplate]="linkTemplate"></list-overflow>
0626e7af
C
46 </div>
47 </div>
48
49 <div class="margin-content">
50 <router-outlet></router-outlet>
51 </div>
52</div>