]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.html
04f0e3b5c243479dacc80e68f3e8f219cf88a242
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / video-blacklist / video-blacklist-list / video-blacklist-list.component.html
1 <div class="admin-sub-header">
2 <div i18n class="form-sub-title">Blacklisted videos</div>
3 </div>
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 i18n pSortableColumn="name">Name <p-sortIcon field="name"></p-sortIcon></th>
12 <th i18n>Description</th>
13 <th i18n pSortableColumn="views">Views <p-sortIcon field="views"></p-sortIcon></th>
14 <th i18n>NSFW</th>
15 <th i18n>UUID</th>
16 <th i18n 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 i18n-label label="Unblacklist" (click)="removeVideoFromBlacklist(videoBlacklist)"></my-delete-button>
31 </td>
32 </tr>
33 </ng-template>
34 </p-table>
35