diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-23 14:36:16 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-23 14:36:16 +0100 |
commit | ab998f7b6dffbe461d830d3696cb46491ad6afb0 (patch) | |
tree | f819e4049ca62b5389fd31ebfcbcb6ffbe0eaf0b /client/src/app/+admin/follows/following-list/following-list.component.html | |
parent | 621d99f53f47a11919ec243e05273ecf5907b444 (diff) | |
download | PeerTube-ab998f7b6dffbe461d830d3696cb46491ad6afb0.tar.gz PeerTube-ab998f7b6dffbe461d830d3696cb46491ad6afb0.tar.zst PeerTube-ab998f7b6dffbe461d830d3696cb46491ad6afb0.zip |
Improve admin tables
Diffstat (limited to 'client/src/app/+admin/follows/following-list/following-list.component.html')
-rw-r--r-- | client/src/app/+admin/follows/following-list/following-list.component.html | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html index fc1cf0dc4..24981d3e9 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.html +++ b/client/src/app/+admin/follows/following-list/following-list.component.html | |||
@@ -1,14 +1,26 @@ | |||
1 | <p-dataTable | 1 | <p-table |
2 | [value]="following" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | 2 | [value]="following" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" |
3 | sortField="createdAt" (onLazyLoad)="loadLazy($event)" | 3 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" |
4 | > | 4 | > |
5 | <p-column field="id" header="ID" [style]="{ width: '60px' }"></p-column> | 5 | <ng-template pTemplate="header"> |
6 | <p-column field="following.host" header="Host"></p-column> | 6 | <tr> |
7 | <p-column field="state" header="State"></p-column> | 7 | <th style="width: 60px">ID</th> |
8 | <p-column field="createdAt" header="Created date" [sortable]="true"></p-column> | 8 | <th>Host</th> |
9 | <p-column styleClass="action-cell"> | 9 | <th>State</th> |
10 | <ng-template pTemplate="body" let-following="rowData"> | 10 | <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> |
11 | <my-delete-button (click)="removeFollowing(following)"></my-delete-button> | 11 | <th></th> |
12 | </ng-template> | 12 | </tr> |
13 | </p-column> | 13 | </ng-template> |
14 | </p-dataTable> | 14 | |
15 | <ng-template pTemplate="body" let-follow> | ||
16 | <tr> | ||
17 | <td>{{ follow.id }}</td> | ||
18 | <td>{{ follow.following.host }}</td> | ||
19 | <td>{{ follow.state }}</td> | ||
20 | <td>{{ follow.createdAt }}</td> | ||
21 | <td class="action-cell"> | ||
22 | <my-delete-button (click)="removeFollowing(follow)"></my-delete-button> | ||
23 | </td> | ||
24 | </tr> | ||
25 | </ng-template> | ||
26 | </p-table> | ||