]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-moderation/server-blocklist.component.html
Add ability to share playlists in modal
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / server-blocklist.component.html
1 <h1>
2 <my-global-icon iconName="peertube-x" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>Muted servers</ng-container>
4 </h1>
5
6 <p-table
7 [value]="blockedServers" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
8 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" (onPage)="onPage($event)"
9 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
10 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted instances"
11 >
12 <ng-template pTemplate="caption">
13 <div class="caption">
14 <div class="ml-auto has-feedback has-clear">
15 <input
16 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
17 (keyup)="onSearch($event)"
18 >
19 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
20 <span class="sr-only" i18n>Clear filters</span>
21 </div>
22 <a class="ml-2 block-button" (click)="addServersToBlock()" (key.enter)="addServersToBlock()">
23 <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
24 <ng-container i18n>Mute domain</ng-container>
25 </a>
26 </div>
27 </ng-template>
28
29 <ng-template pTemplate="header">
30 <tr>
31 <th style="width: 150px;">Action</th> <!-- column for action buttons -->
32 <th style="width: 100%;" i18n>Instance</th>
33 <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
34 </tr>
35 </ng-template>
36
37 <ng-template pTemplate="body" let-serverBlock>
38 <tr>
39 <td class="action-cell">
40 <button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>
41 </td>
42 <td>
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 <span class="glyphicon glyphicon-new-window"></span>
46 </a>
47 </td>
48 <td>{{ serverBlock.createdAt | date: 'short' }}</td>
49 </tr>
50 </ng-template>
51
52 <ng-template pTemplate="emptymessage">
53 <tr>
54 <td colspan="6">
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>
58 </div>
59 </td>
60 </tr>
61 </ng-template>
62 </p-table>
63
64 <my-batch-domains-modal #batchDomainsModal i18n-action action="Mute domains" (domains)="onDomainsToBlock($event)"></my-batch-domains-modal>