]>
Commit | Line | Data |
---|---|---|
af5767ff C |
1 | <div class="admin-sub-header"> |
2 | <div i18n class="form-sub-title">Muted accounts</div> | |
3 | </div> | |
4 | ||
5 | <p-table | |
6 | [value]="blockedAccounts" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
7 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" | |
8 | > | |
9 | ||
10 | <ng-template pTemplate="header"> | |
11 | <tr> | |
12 | <th i18n>Account</th> | |
13 | <th i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> | |
14 | </tr> | |
15 | </ng-template> | |
16 | ||
17 | <ng-template pTemplate="body" let-accountBlock> | |
18 | <tr> | |
19 | <td>{{ accountBlock.blockedAccount.nameWithHost }}</td> | |
20 | <td>{{ accountBlock.createdAt }}</td> | |
21 | <td class="action-cell"> | |
22 | <button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button> | |
23 | </td> | |
24 | </tr> | |
25 | </ng-template> | |
26 | </p-table> |