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/video-abuses/video-abuse-list/video-abuse-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/video-abuses/video-abuse-list/video-abuse-list.component.html')
-rw-r--r-- | client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html index 65d061246..2779db5bc 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html | |||
@@ -2,18 +2,27 @@ | |||
2 | <div class="admin-sub-title">Video abuses list</div> | 2 | <div class="admin-sub-title">Video abuses list</div> |
3 | </div> | 3 | </div> |
4 | 4 | ||
5 | <p-dataTable | 5 | <p-table |
6 | [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | 6 | [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" |
7 | sortField="id" (onLazyLoad)="loadLazy($event)" | 7 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" |
8 | > | 8 | > |
9 | <p-column field="id" header="ID" [sortable]="true" [style]="{ width: '60px' }"></p-column> | 9 | <ng-template pTemplate="header"> |
10 | <p-column field="reason" header="Reason"></p-column> | 10 | <tr> |
11 | <p-column field="reporterServerHost" header="Reporter server host"></p-column> | 11 | <th>Reason</th> |
12 | <p-column field="reporterUsername" header="Reporter username"></p-column> | 12 | <th>Reporter</th> |
13 | <p-column field="createdAt" header="Created date" [sortable]="true"></p-column> | 13 | <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> |
14 | <p-column header="Video"> | 14 | <th>Video</th> |
15 | <ng-template pTemplate="body" let-videoAbuse="rowData"> | 15 | </tr> |
16 | <a [routerLink]="getRouterVideoLink(videoAbuse.videoId)" title="Go to the video">{{ videoAbuse.videoName }}</a> | 16 | </ng-template> |
17 | </ng-template> | 17 | |
18 | </p-column> | 18 | <ng-template pTemplate="body" let-videoAbuse> |
19 | </p-dataTable> | 19 | <tr> |
20 | <td>{{ videoAbuse.reason }}</td> | ||
21 | <td>{{ videoAbuse.reporterServerHost + '@' + videoAbuse.reporterUsername }}</td> | ||
22 | <td>{{ videoAbuse.createdAt }}</td> | ||
23 | <td> | ||
24 | <a [routerLink]="getRouterVideoLink(videoAbuse.videoUUID)" title="Go to the video">{{ videoAbuse.videoName }}</a> | ||
25 | </td> | ||
26 | </tr> | ||
27 | </ng-template> | ||
28 | </p-table> | ||