2 [value]=
"blockedServers" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" (onPage)=
"onPage($event)"
4 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
5 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted instances"
7 <ng-template pTemplate=
"caption">
9 <div class=
"ml-auto has-feedback has-clear">
11 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
12 (keyup)=
"onSearch($event)"
14 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetSearch()"></a>
15 <span class=
"sr-only" i18n
>Clear filters
</span>
17 <a class=
"ml-2 block-button" (click)=
"addServersToBlock()" (key.enter)=
"addServersToBlock()">
18 <my-global-icon iconName=
"add" aria-hidden=
"true"></my-global-icon>
19 <ng-container i18n
>Mute domain
</ng-container>
24 <ng-template pTemplate=
"header">
26 <th style=
"width: 100%;" i18n
>Instance
</th>
27 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Muted at
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
28 <th style=
"width: 150px;"></th> <!-- column for action buttons -->
32 <ng-template pTemplate=
"body" let-serverBlock
>
35 <a [href]=
"'https://' + serverBlock.blockedServer.host" i18n-title
title=
"Open instance in a new tab" target=
"_blank" rel=
"noopener noreferrer">
36 {{ serverBlock.blockedServer.host }}
37 <span class=
"glyphicon glyphicon-new-window"></span>
40 <td>{{ serverBlock.createdAt | date: 'short' }}
</td>
41 <td class=
"action-cell">
42 <button class=
"unblock-button" (click)=
"unblockServer(serverBlock)" i18n
>Unmute
</button>
47 <ng-template pTemplate=
"emptymessage">
50 <div class=
"no-results">
51 <ng-container *
ngIf=
"search" i18n
>No server found matching current filters.
</ng-container>
52 <ng-container *
ngIf=
"!search" i18n
>No server found.
</ng-container>
59 <my-batch-domains-modal #batchDomainsModal i18n-action
action=
"Mute domains" (domains)=
"onDomainsToBlock($event)"></my-batch-domains-modal>