]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html
Switching to a named filters/single input on video-abuse
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / instance-blocklist / instance-server-blocklist.component.html
CommitLineData
65b21c96 1<p-table
b8cf27c0 2 [value]="blockedServers" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
65b21c96 3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
2bc9bd08 4 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
45c14ae1 5 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted instances"
65b21c96 6>
bb152476
RK
7 <ng-template pTemplate="caption">
8 <div class="caption">
e0a92917
RK
9 <div class="ml-auto">
10 <input
11 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
12 (keyup)="onSearch($event)"
13 >
14 </div>
15 <a class="ml-2 block-button" (click)="addServersToBlock()" (key.enter)="addServersToBlock()">
bb152476
RK
16 <my-global-icon iconName="add"></my-global-icon>
17 <ng-container i18n>Mute domain</ng-container>
18 </a>
19 </div>
20 </ng-template>
65b21c96
C
21
22 <ng-template pTemplate="header">
23 <tr>
d3840613 24 <th style="width: 100%;" i18n>Instance</th>
9b4241e3 25 <th style="width: 190px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
68d19a0a 26 <th style="width: 100px;"></th> <!-- column for action buttons -->
65b21c96
C
27 </tr>
28 </ng-template>
29
30 <ng-template pTemplate="body" let-serverBlock>
31 <tr>
86521a67
RK
32 <td>
33 <a [href]="'https://' + serverBlock.blockedServer.host" i18n-title title="Open instance in a new tab" target="_blank" rel="noopener noreferrer">
34 {{ serverBlock.blockedServer.host }}
35 <span class="glyphicon glyphicon-new-window"></span>
36 </a>
37 </td>
65b21c96
C
38 <td>{{ serverBlock.createdAt }}</td>
39 <td class="action-cell">
40 <button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>
41 </td>
42 </tr>
43 </ng-template>
d3840613
RK
44
45 <ng-template pTemplate="emptymessage">
46 <tr>
47 <td colspan="6">
48 <div class="empty-table-message">
49 <ng-container *ngIf="search" i18n>No server found matching current filters.</ng-container>
50 <ng-container *ngIf="!search" i18n>No server found.</ng-container>
51 </div>
52 </td>
53 </tr>
54 </ng-template>
65b21c96 55</p-table>
bb152476 56
b8cf27c0 57<my-batch-domains-modal #batchDomainsModal i18n-action action="Mute domains" (domains)="onDomainsToBlock($event)"></my-batch-domains-modal>