2 <my-global-icon iconName=
"peertube-x" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Muted servers
</ng-container>
7 [value]=
"blockedServers" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords"
8 [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions" [first]=
"pagination.start"
9 [sortField]=
"sort.field" [sortOrder]=
"sort.order"
10 [lazy]=
"true" (onLazyLoad)=
"loadLazy($event)" [lazyLoadOnInit]=
"false"
11 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
12 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted instances"
14 <ng-template pTemplate=
"caption">
16 <div class=
"left-buttons">
17 <a class=
"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 <my-advanced-input-filter (search)=
"onSearch($event)"></my-advanced-input-filter>
29 <ng-template pTemplate=
"header">
31 <th style=
"width: 150px;" i18n
>Action
</th> <!-- column for action buttons -->
32 <th style=
"width: calc(100% - 300px);" i18n
>Instance
</th>
33 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Muted at
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
37 <ng-template pTemplate=
"body" let-serverBlock
>
39 <td class=
"action-cell">
40 <button class=
"unblock-button" (click)=
"unblockServer(serverBlock)" i18n
>Unmute
</button>
43 <a [href]=
"'https://' + serverBlock.blockedServer.host" i18n-title
title=
"Open instance in a new tab" target=
"_blank" rel=
"noopener noreferrer">
44 {{ serverBlock.blockedServer.host }}
45 <my-global-icon iconName=
"external-link"></my-global-icon>
48 <td>{{ serverBlock.createdAt | date: 'short' }}
</td>
52 <ng-template pTemplate=
"emptymessage">
55 <div class=
"no-results">
56 <ng-container *
ngIf=
"search" i18n
>No server found matching current filters.
</ng-container>
57 <ng-container *
ngIf=
"!search" i18n
>No server found.
</ng-container>
64 <my-batch-domains-modal #batchDomainsModal i18n-action
action=
"Mute domains" (domains)=
"onDomainsToBlock($event)"></my-batch-domains-modal>