2 <my-global-icon iconName=
"user-x" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Muted accounts
</ng-container>
7 [value]=
"blockedAccounts" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords"
8 [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions" [first]=
"pagination.start"
9 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)"
10 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
11 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted accounts"
13 <ng-template pTemplate=
"caption">
16 <my-advanced-input-filter (search)=
"onSearch($event)"></my-advanced-input-filter>
21 <ng-template pTemplate=
"header">
23 <th style=
"width: 150px;" i18n
>Action
</th> <!-- column for action buttons -->
24 <th style=
"width: calc(100% - 300px);" i18n
>Account
</th>
25 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Muted at
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
29 <ng-template pTemplate=
"body" let-accountBlock
>
31 <td class=
"action-cell">
32 <button class=
"unblock-button" (click)=
"unblockAccount(accountBlock)" i18n
>Unmute
</button>
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">
37 <my-actor-avatar [actor]=
"accountBlock.blockedAccount" actorType=
"account" size=
"32"></my-actor-avatar>
39 {{ accountBlock.blockedAccount.displayName }}
40 <span class=
"muted">{{ accountBlock.blockedAccount.nameWithHost }}
</span>
46 <td>{{ accountBlock.createdAt | date: 'short' }}
</td>
50 <ng-template pTemplate=
"emptymessage">
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>