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: 100px;" i18n
>Sensitive
</th>
12 <th style=
"width: 120px;" i18n
>Unfederated
</th>
13 <th style=
"width: 190px;" 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)" class=
"video-table-video-link" i18n-title
title=
"Open video in a new tab" target=
"_blank" rel=
"noopener noreferrer">
29 <div class=
"video-table-video">
30 <div class=
"video-table-video-image">
31 <img [src]=
"videoBlacklist.video.thumbnailPath">
33 <div class=
"video-table-video-text">
35 {{ videoBlacklist.video.name }}
36 <span class=
"glyphicon glyphicon-new-window"></span>
38 <div class=
"text-muted">by {{ videoBlacklist.video.channel?.displayName }} on {{ videoBlacklist.video.channel?.host }}
</div>
44 <ng-container *
ngIf=
"videoBlacklist.reason">
45 <td class=
"c-hand" [pRowToggler]=
"videoBlacklist">{{ booleanToText(videoBlacklist.video.nsfw) }}
</td>
46 <td class=
"c-hand" [pRowToggler]=
"videoBlacklist">{{ booleanToText(videoBlacklist.unfederated) }}
</td>
47 <td class=
"c-hand" [pRowToggler]=
"videoBlacklist">{{ videoBlacklist.createdAt }}
</td>
49 <ng-container *
ngIf=
"!videoBlacklist.reason">
50 <td>{{ booleanToText(videoBlacklist.video.nsfw) }}
</td>
51 <td>{{ booleanToText(videoBlacklist.unfederated) }}
</td>
52 <td>{{ videoBlacklist.createdAt }}
</td>
55 <td class=
"action-cell">
56 <my-action-dropdown i18n-label
placement=
"bottom-right" label=
"Actions" [actions]=
"videoBlacklistActions" [entry]=
"videoBlacklist"></my-action-dropdown>
61 <ng-template pTemplate=
"rowexpansion" let-videoBlacklist
>
63 <td class=
"expand-cell" colspan=
"6">
64 <span class=
"col-2 moderation-expanded-label" i18n
>Blacklist reason:
</span>
65 <span class=
"col-9 moderation-expanded-text" [innerHTML]=
"videoBlacklist.reasonHtml"></span>