]>
Commit | Line | Data |
---|---|---|
ab998f7b C |
1 | <p-table |
2 | [value]="blacklist" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
26b7305a | 3 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" |
2bc9bd08 | 4 | [showCurrentPageReport]="true" i18n-currentPageReportTemplate |
45c14ae1 | 5 | currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} blacklisted videos" |
ab998f7b C |
6 | > |
7 | <ng-template pTemplate="header"> | |
8 | <tr> | |
26b7305a | 9 | <th style="width: 40px"></th> |
2bc9bd08 RK |
10 | <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th> |
11 | <th style="width: 120px;" i18n>Sensitive</th> | |
12 | <th style="width: 120px;" i18n>Unfederated</th> | |
13 | <th style="width: 200px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th> | |
af5767ff | 14 | <th style="width: 120px;"></th> |
ab998f7b C |
15 | </tr> |
16 | </ng-template> | |
17 | ||
26b7305a | 18 | <ng-template pTemplate="body" let-videoBlacklist let-expanded="expanded"> |
ab998f7b | 19 | <tr> |
2bc9bd08 RK |
20 | <td *ngIf="!videoBlacklist.reason"></td> |
21 | <td *ngIf="videoBlacklist.reason" class="expand-cell c-hand" [pRowToggler]="videoBlacklist" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body"> | |
22 | <span class="expander"> | |
26b7305a C |
23 | <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i> |
24 | </span> | |
25 | </td> | |
26 | ||
191764f3 C |
27 | <td> |
28 | <a [href]="getVideoUrl(videoBlacklist)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer"> | |
29 | {{ videoBlacklist.video.name }} | |
30 | </a> | |
31 | </td> | |
32 | ||
5abb9fbb C |
33 | <td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td> |
34 | <td>{{ booleanToText(videoBlacklist.unfederated) }}</td> | |
ab998f7b | 35 | <td>{{ videoBlacklist.createdAt }}</td> |
26b7305a | 36 | |
ab998f7b | 37 | <td class="action-cell"> |
4707f410 | 38 | <my-action-dropdown i18n-label placement="bottom-right" label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"></my-action-dropdown> |
26b7305a C |
39 | </td> |
40 | </tr> | |
41 | </ng-template> | |
42 | ||
43 | <ng-template pTemplate="rowexpansion" let-videoBlacklist> | |
83b5fe9c | 44 | <tr> |
d6af8146 RK |
45 | <td class="expand-cell" colspan="6"> |
46 | <span class="col-2 moderation-expanded-label" i18n>Blacklist reason:</span> | |
47 | <span class="col-9 moderation-expanded-text" [innerHTML]="videoBlacklist.reasonHtml"></span> | |
ab998f7b C |
48 | </td> |
49 | </tr> | |
50 | </ng-template> | |
51 | </p-table> | |
52 |