]>
Commit | Line | Data |
---|---|---|
65b21c96 | 1 | <p-table |
92ea70a7 | 2 | [value]="blockedServers" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" |
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"> | |
9 | <a class="ml-auto block-button" (click)="addServersToBlock()" (key.enter)="addServersToBlock()"> | |
10 | <my-global-icon iconName="add"></my-global-icon> | |
11 | <ng-container i18n>Mute domain</ng-container> | |
12 | </a> | |
13 | </div> | |
14 | </ng-template> | |
65b21c96 C |
15 | |
16 | <ng-template pTemplate="header"> | |
17 | <tr> | |
18 | <th i18n>Instance</th> | |
9b4241e3 | 19 | <th style="width: 190px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> |
68d19a0a | 20 | <th style="width: 100px;"></th> <!-- column for action buttons --> |
65b21c96 C |
21 | </tr> |
22 | </ng-template> | |
23 | ||
24 | <ng-template pTemplate="body" let-serverBlock> | |
25 | <tr> | |
26 | <td>{{ serverBlock.blockedServer.host }}</td> | |
27 | <td>{{ serverBlock.createdAt }}</td> | |
28 | <td class="action-cell"> | |
29 | <button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button> | |
30 | </td> | |
31 | </tr> | |
32 | </ng-template> | |
33 | </p-table> | |
bb152476 RK |
34 | |
35 | <my-batch-domains-modal #batchDomainsModal i18n-action action="Mute domains" (domains)="onDomainsToBlock($event)"> | |
36 | <ng-container ngProjectAs="warning"> | |
37 | <div i18n *ngIf="httpEnabled() === false" class="alert alert-warning"> | |
38 | It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers. | |
39 | </div> | |
40 | </ng-container> | |
41 | </my-batch-domains-modal> |