]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-moderation/account-blocklist.component.html
Fix table columns on safari
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / account-blocklist.component.html
CommitLineData
ed5bb517 1<h1>
a7eaeae1 2 <my-global-icon iconName="user-x" aria-hidden="true"></my-global-icon>
ed5bb517
K
3 <ng-container i18n>Muted accounts</ng-container>
4</h1>
5
22839330 6<p-table
0667dbaf
C
7 [value]="blockedAccounts" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords"
8 [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" [first]="pagination.start"
e6492b2d 9 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
22839330
RK
10 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
11 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted accounts"
12>
13 <ng-template pTemplate="caption">
14 <div class="caption">
4c8749cb 15 <div class="ms-auto">
2e46eb97 16 <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter>
22839330
RK
17 </div>
18 </div>
19 </ng-template>
20
21 <ng-template pTemplate="header">
22 <tr>
e0436741 23 <th style="width: 150px;" i18n>Action</th> <!-- column for action buttons -->
e07c5516 24 <th i18n>Account</th>
22839330 25 <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
22839330
RK
26 </tr>
27 </ng-template>
28
29 <ng-template pTemplate="body" let-accountBlock>
30 <tr>
30814423
K
31 <td class="action-cell">
32 <button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button>
33 </td>
22839330
RK
34 <td>
35 <a [href]="accountBlock.blockedAccount.url" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer">
36 <div class="chip two-lines">
87fdea2f 37 <my-actor-avatar [actor]="accountBlock.blockedAccount" actorType="account" size="32"></my-actor-avatar>
22839330
RK
38 <div>
39 {{ accountBlock.blockedAccount.displayName }}
b788e691 40 <span class="muted">{{ accountBlock.blockedAccount.nameWithHost }}</span>
22839330
RK
41 </div>
42 </div>
43 </a>
44 </td>
45
46 <td>{{ accountBlock.createdAt | date: 'short' }}</td>
22839330
RK
47 </tr>
48 </ng-template>
49
50 <ng-template pTemplate="emptymessage">
51 <tr>
5b0ec7cd 52 <td colspan="3">
22839330
RK
53 <div class="no-results">
54 <ng-container *ngIf="search" i18n>No account found matching current filters.</ng-container>
55 <ng-container *ngIf="!search" i18n>No account found.</ng-container>
56 </div>
57 </td>
58 </tr>
59 </ng-template>
60</p-table>