Basic video redundancy implementation
[oweals/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="header">
6     <tr>
7       <th i18n style="width: 60px">ID</th>
8       <th i18n>Host</th>
9       <th i18n>State</th>
10       <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
11       <th i18n>Redundancy allowed</th>
12       <th></th>
13     </tr>
14   </ng-template>
15
16   <ng-template pTemplate="body" let-follow>
17     <tr>
18       <td>{{ follow.id }}</td>
19       <td>{{ follow.following.host }}</td>
20       <td>{{ follow.state }}</td>
21       <td>{{ follow.createdAt }}</td>
22       <td>
23         <my-redundancy-checkbox
24           [host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed"
25         ></my-redundancy-checkbox>
26       </td>
27       <td class="action-cell">
28         <my-delete-button (click)="removeFollowing(follow)"></my-delete-button>
29       </td>
30     </tr>
31   </ng-template>
32 </p-table>