]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-moderation/account-blocklist.component.html
Reduce advanced search input debounce time
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / account-blocklist.component.html
CommitLineData
ed5bb517 1<h1>
a7eaeae1 2 <my-global-icon iconName="user-x" aria-hidden="true"></my-global-icon>
ed5bb517
K
3 <ng-container i18n>Muted accounts</ng-container>
4</h1>
5
22839330
RK
6<p-table
7 [value]="blockedAccounts" [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 accounts"
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 </div>
23 </ng-template>
24
25 <ng-template pTemplate="header">
26 <tr>
e0436741 27 <th style="width: 150px;" i18n>Action</th> <!-- column for action buttons -->
7f0d8561 28 <th style="width: calc(100% - 300px);" i18n>Account</th>
22839330 29 <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
22839330
RK
30 </tr>
31 </ng-template>
32
33 <ng-template pTemplate="body" let-accountBlock>
34 <tr>
30814423
K
35 <td class="action-cell">
36 <button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button>
37 </td>
22839330
RK
38 <td>
39 <a [href]="accountBlock.blockedAccount.url" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer">
40 <div class="chip two-lines">
746018f6 41 <my-actor-avatar [account]="accountBlock.blockedAccount"></my-actor-avatar>
22839330
RK
42 <div>
43 {{ accountBlock.blockedAccount.displayName }}
44 <span class="text-muted">{{ accountBlock.blockedAccount.nameWithHost }}</span>
45 </div>
46 </div>
47 </a>
48 </td>
49
50 <td>{{ accountBlock.createdAt | date: 'short' }}</td>
22839330
RK
51 </tr>
52 </ng-template>
53
54 <ng-template pTemplate="emptymessage">
55 <tr>
56 <td colspan="6">
57 <div class="no-results">
58 <ng-container *ngIf="search" i18n>No account found matching current filters.</ng-container>
59 <ng-container *ngIf="!search" i18n>No account found.</ng-container>
60 </div>
61 </td>
62 </tr>
63 </ng-template>
64</p-table>