]>
Commit | Line | Data |
---|---|---|
f595d394 C |
1 | <div class="admin-sub-header"> |
2 | <div class="admin-sub-title">Video abuses list</div> | |
897ec54d | 3 | </div> |
f595d394 | 4 | |
ab998f7b C |
5 | <p-table |
6 | [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
7 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" | |
f595d394 | 8 | > |
ab998f7b C |
9 | <ng-template pTemplate="header"> |
10 | <tr> | |
11 | <th>Reason</th> | |
12 | <th>Reporter</th> | |
13 | <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | |
14 | <th>Video</th> | |
15 | </tr> | |
16 | </ng-template> | |
17 | ||
18 | <ng-template pTemplate="body" let-videoAbuse> | |
19 | <tr> | |
20 | <td>{{ videoAbuse.reason }}</td> | |
19a3b914 | 21 | <td> |
632c5e36 | 22 | <a [href]="videoAbuse.reporterAccount.url" title="Go to the account" target="_blank" rel="noopener noreferrer"> |
19a3b914 C |
23 | {{ createByString(videoAbuse.reporterAccount) }} |
24 | </a> | |
25 | </td> | |
ab998f7b C |
26 | <td>{{ videoAbuse.createdAt }}</td> |
27 | <td> | |
632c5e36 | 28 | <a [href]="videoAbuse.video.url" title="Go to the video" target="_blank" rel="noopener noreferrer"> |
19a3b914 C |
29 | {{ videoAbuse.video.name }} |
30 | </a> | |
ab998f7b C |
31 | </td> |
32 | </tr> | |
33 | </ng-template> | |
34 | </p-table> |