]>
Commit | Line | Data |
---|---|---|
1 | <div class="admin-sub-header"> | |
2 | <div class="admin-sub-title">Video abuses list</div> | |
3 | </div> | |
4 | ||
5 | <p-table | |
6 | [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
7 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" | |
8 | > | |
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> | |
21 | <td> | |
22 | <a [href]="videoAbuse.reporterAccount.url" title="Go to the account" target="_blank" rel="noopener noreferrer"> | |
23 | {{ createByString(videoAbuse.reporterAccount) }} | |
24 | </a> | |
25 | </td> | |
26 | <td>{{ videoAbuse.createdAt }}</td> | |
27 | <td> | |
28 | <a [href]="videoAbuse.video.url" title="Go to the video" target="_blank" rel="noopener noreferrer"> | |
29 | {{ videoAbuse.video.name }} | |
30 | </a> | |
31 | </td> | |
32 | </tr> | |
33 | </ng-template> | |
34 | </p-table> |