]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/follows/following-list/following-list.component.html
Merge branch 'release/2.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / following-list / following-list.component.html
1 <p-table
2 [value]="following" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
4 >
5 <ng-template pTemplate="caption">
6 <div class="caption">
7 <div>
8 <input
9 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
10 (keyup)="onSearch($event)"
11 >
12 </div>
13 </div>
14 </ng-template>
15
16 <ng-template pTemplate="header">
17 <tr>
18 <th i18n>Host</th>
19 <th i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
20 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
21 <th i18n pSortableColumn="redundancyAllowed">Redundancy allowed <p-sortIcon field="redundancyAllowed"></p-sortIcon></th>
22 <th></th>
23 </tr>
24 </ng-template>
25
26 <ng-template pTemplate="body" let-follow>
27 <tr>
28 <td>{{ follow.following.host }}</td>
29
30 <td *ngIf="follow.state === 'accepted'" i18n>Accepted</td>
31 <td *ngIf="follow.state === 'pending'" i18n>Pending</td>
32
33 <td>{{ follow.createdAt }}</td>
34 <td>
35 <my-redundancy-checkbox
36 [host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed"
37 ></my-redundancy-checkbox>
38 </td>
39 <td class="action-cell">
40 <my-delete-button (click)="removeFollowing(follow)"></my-delete-button>
41 </td>
42 </tr>
43 </ng-template>
44 </p-table>