2020-07-23 09:09:15 -04:00
|
|
|
<h1>
|
2020-08-03 08:04:33 -04:00
|
|
|
<my-global-icon iconName="user-x" aria-hidden="true"></my-global-icon>
|
2020-07-23 09:09:15 -04:00
|
|
|
<ng-container i18n>Muted accounts</ng-container>
|
|
|
|
</h1>
|
|
|
|
|
2020-06-15 07:18:22 -04:00
|
|
|
<p-table
|
|
|
|
[value]="blockedAccounts" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
|
2021-12-24 09:37:42 -05:00
|
|
|
[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
|
2020-06-15 07:18:22 -04:00
|
|
|
[showCurrentPageReport]="true" i18n-currentPageReportTemplate
|
|
|
|
currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted accounts"
|
|
|
|
>
|
|
|
|
<ng-template pTemplate="caption">
|
|
|
|
<div class="caption">
|
2021-05-03 08:33:34 -04:00
|
|
|
<div class="ml-auto">
|
|
|
|
<my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter>
|
2020-06-15 07:18:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template pTemplate="header">
|
|
|
|
<tr>
|
2021-04-12 02:43:40 -04:00
|
|
|
<th style="width: 150px;" i18n>Action</th> <!-- column for action buttons -->
|
2020-08-27 11:27:37 -04:00
|
|
|
<th style="width: calc(100% - 300px);" i18n>Account</th>
|
2020-06-15 07:18:22 -04:00
|
|
|
<th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template pTemplate="body" let-accountBlock>
|
|
|
|
<tr>
|
2020-07-31 05:30:57 -04:00
|
|
|
<td class="action-cell">
|
|
|
|
<button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button>
|
|
|
|
</td>
|
2020-06-15 07:18:22 -04:00
|
|
|
<td>
|
|
|
|
<a [href]="accountBlock.blockedAccount.url" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer">
|
|
|
|
<div class="chip two-lines">
|
2021-04-28 05:49:34 -04:00
|
|
|
<my-actor-avatar [account]="accountBlock.blockedAccount"></my-actor-avatar>
|
2020-06-15 07:18:22 -04:00
|
|
|
<div>
|
|
|
|
{{ accountBlock.blockedAccount.displayName }}
|
|
|
|
<span class="text-muted">{{ accountBlock.blockedAccount.nameWithHost }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>{{ accountBlock.createdAt | date: 'short' }}</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template pTemplate="emptymessage">
|
|
|
|
<tr>
|
|
|
|
<td colspan="6">
|
|
|
|
<div class="no-results">
|
|
|
|
<ng-container *ngIf="search" i18n>No account found matching current filters.</ng-container>
|
|
|
|
<ng-container *ngIf="!search" i18n>No account found.</ng-container>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
|
|
|
</p-table>
|