]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/follows/following-list/following-list.component.html
Support i18n build
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / following-list / following-list.component.html
CommitLineData
ab998f7b
C
1<p-table
2 [value]="following" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
04e0fc48 4>
b014b6b9
C
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.target.value)"
11 >
12 </div>
13 </div>
14 </ng-template>
15
ab998f7b
C
16 <ng-template pTemplate="header">
17 <tr>
b1d40cff 18 <th i18n>Host</th>
cb5ce4cb 19 <th i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
b1d40cff 20 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
cb5ce4cb 21 <th i18n pSortableColumn="redundancyAllowed">Redundancy allowed <p-sortIcon field="redundancyAllowed"></p-sortIcon></th>
ab998f7b
C
22 <th></th>
23 </tr>
24 </ng-template>
25
26 <ng-template pTemplate="body" let-follow>
27 <tr>
ab998f7b 28 <td>{{ follow.following.host }}</td>
3827c3b3
C
29
30 <td *ngIf="follow.state === 'accepted'" i18n>Accepted</td>
31 <td *ngIf="follow.state === 'pending'" i18n>Pending</td>
32
ab998f7b 33 <td>{{ follow.createdAt }}</td>
c48e82b5
C
34 <td>
35 <my-redundancy-checkbox
36 [host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed"
37 ></my-redundancy-checkbox>
38 </td>
ab998f7b
C
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>