2 [value]="blacklist" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
4 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
5 currentPageReportTemplate="Showing {first} to {last} of {totalRecords} blacklisted videos"
7 <ng-template pTemplate="header">
9 <th style="width: 40px"></th>
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>
14 <th style="width: 120px;"></th>
18 <ng-template pTemplate="body" let-videoBlacklist let-expanded="expanded">
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">
23 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
28 <a [href]="getVideoUrl(videoBlacklist)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
29 {{ videoBlacklist.video.name }}
33 <td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
34 <td>{{ booleanToText(videoBlacklist.unfederated) }}</td>
35 <td>{{ videoBlacklist.createdAt }}</td>
37 <td class="action-cell">
38 <my-action-dropdown i18n-label placement="bottom-right" label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"></my-action-dropdown>
43 <ng-template pTemplate="rowexpansion" let-videoBlacklist>
45 <td class="moderation-expanded" colspan="6">
46 <span i18n class="moderation-expanded-label">Blacklist reason:</span>
47 <span class="moderation-expanded-text" [innerHTML]="videoBlacklist.reasonHtml"></span>