]>
Commit | Line | Data |
---|---|---|
ab998f7b C |
1 | <div class="admin-sub-header"> |
2 | <div class="admin-sub-title">Blacklisted videos</div> | |
792dbaf0 | 3 | </div> |
ab998f7b C |
4 | |
5 | <p-table | |
6 | [value]="blacklist" [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 pSortableColumn="name">Name <p-sortIcon field="name"></p-sortIcon></th> | |
12 | <th>Description</th> | |
13 | <th pSortableColumn="views">Views <p-sortIcon field="views"></p-sortIcon></th> | |
14 | <th>NSFW</th> | |
15 | <th>UUID</th> | |
16 | <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | |
17 | <th></th> | |
18 | </tr> | |
19 | </ng-template> | |
20 | ||
21 | <ng-template pTemplate="body" let-videoBlacklist> | |
22 | <tr> | |
23 | <td>{{ videoBlacklist.name }}</td> | |
24 | <td>{{ videoBlacklist.description }}</td> | |
25 | <td>{{ videoBlacklist.views }}</td> | |
26 | <td>{{ videoBlacklist.nsfw }}</td> | |
27 | <td>{{ videoBlacklist.uuid }}</td> | |
28 | <td>{{ videoBlacklist.createdAt }}</td> | |
29 | <td class="action-cell"> | |
30 | <my-delete-button label="Unblacklist" (click)="removeVideoFromBlacklist(videoBlacklist)"></my-delete-button> | |
31 | </td> | |
32 | </tr> | |
33 | </ng-template> | |
34 | </p-table> | |
35 |