]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-moderation/server-blocklist.component.html
Reduce advanced search input debounce time
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / server-blocklist.component.html
CommitLineData
ed5bb517 1<h1>
f4a2dc50 2 <my-global-icon iconName="peertube-x" aria-hidden="true"></my-global-icon>
ed5bb517
K
3 <ng-container i18n>Muted servers</ng-container>
4</h1>
5
65b21c96 6<p-table
b8cf27c0 7 [value]="blockedServers" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
86ab2292 8 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" (onPage)="onPage($event)"
2bc9bd08 9 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
45c14ae1 10 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted instances"
65b21c96 11>
bb152476
RK
12 <ng-template pTemplate="caption">
13 <div class="caption">
9c1a88e3
C
14 <div class="left-buttons">
15 <a class="block-button" (click)="addServersToBlock()" (key.enter)="addServersToBlock()">
16 <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
17 <ng-container i18n>Mute domain</ng-container>
18 </a>
19 </div>
20
25a42e29 21 <div class="ml-auto has-feedback has-clear">
e0a92917
RK
22 <input
23 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
24 (keyup)="onSearch($event)"
25 >
25a42e29
RK
26 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
27 <span class="sr-only" i18n>Clear filters</span>
e0a92917 28 </div>
bb152476
RK
29 </div>
30 </ng-template>
65b21c96
C
31
32 <ng-template pTemplate="header">
33 <tr>
e0436741 34 <th style="width: 150px;" i18n>Action</th> <!-- column for action buttons -->
7f0d8561 35 <th style="width: calc(100% - 300px);" i18n>Instance</th>
df4c603d 36 <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
65b21c96
C
37 </tr>
38 </ng-template>
39
40 <ng-template pTemplate="body" let-serverBlock>
41 <tr>
30814423
K
42 <td class="action-cell">
43 <button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>
44 </td>
86521a67
RK
45 <td>
46 <a [href]="'https://' + serverBlock.blockedServer.host" i18n-title title="Open instance in a new tab" target="_blank" rel="noopener noreferrer">
47 {{ serverBlock.blockedServer.host }}
48 <span class="glyphicon glyphicon-new-window"></span>
49 </a>
50 </td>
7f979fd8 51 <td>{{ serverBlock.createdAt | date: 'short' }}</td>
65b21c96
C
52 </tr>
53 </ng-template>
d3840613
RK
54
55 <ng-template pTemplate="emptymessage">
56 <tr>
57 <td colspan="6">
22839330 58 <div class="no-results">
d3840613
RK
59 <ng-container *ngIf="search" i18n>No server found matching current filters.</ng-container>
60 <ng-container *ngIf="!search" i18n>No server found.</ng-container>
61 </div>
62 </td>
63 </tr>
64 </ng-template>
65b21c96 65</p-table>
bb152476 66
b8cf27c0 67<my-batch-domains-modal #batchDomainsModal i18n-action action="Mute domains" (domains)="onDomainsToBlock($event)"></my-batch-domains-modal>