2 <my-global-icon iconName=
"cross" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Video blocks
</ng-container>
7 [value]=
"blocklist" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
8 [sortField]=
"sort.field" [sortOrder]=
"sort.order" dataKey=
"id"
9 [lazy]=
"true" (onLazyLoad)=
"loadLazy($event)" [lazyLoadOnInit]=
"false"
10 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
11 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} blocked videos"
12 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
14 <ng-template pTemplate=
"caption">
17 <my-advanced-input-filter [filters]=
"inputFilters" (search)=
"onSearch($event)"></my-advanced-input-filter>
22 <ng-template pTemplate=
"header">
24 <th style=
"width: 40px;"></th>
25 <th style=
"width: 150px;"></th>
26 <th i18n
pSortableColumn=
"name">Video
<p-sortIcon field=
"name"></p-sortIcon></th>
27 <th style=
"width: 100px;" i18n
>Sensitive
</th>
28 <th style=
"width: 120px;" i18n
>Unfederated
</th>
29 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Date
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
33 <ng-template pTemplate=
"body" let-videoBlock
let-expanded=
"expanded">
35 <td *
ngIf=
"!videoBlock.reason"></td>
36 <td class=
"expand-cell" *
ngIf=
"videoBlock.reason" [pRowToggler]=
"videoBlock">
37 <my-table-expander-icon [expanded]=
"expanded"></my-table-expander-icon>
40 <td class=
"action-cell">
42 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right auto" container=
"body"
43 i18n-label
label=
"Actions" [actions]=
"videoBlocklistActions" [entry]=
"videoBlock"
44 ></my-action-dropdown>
48 <my-video-cell [video]=
"videoBlock.video">
50 <my-global-icon *
ngIf=
"videoBlock.type === 2" i18n-title
title=
"The video was blocked due to automatic blocking of new videos" iconName=
"robot"></my-global-icon>
56 <span *
ngIf=
"videoBlock.video.nsfw" class=
"badge badge-red" i18n
>NSFW
</span>
60 <span *
ngIf=
"videoBlock.unfederated" class=
"badge badge-blue" i18n
>Unfederated
</span>
64 {{ videoBlock.createdAt | date: 'short' }}
69 <ng-template pTemplate=
"rowexpansion" let-videoBlock
>
71 <td class=
"expand-cell" colspan=
"6">
72 <div class=
"d-flex moderation-expanded">
75 <span class=
"moderation-expanded-label" i18n
>Block reason:
</span>
76 <span class=
"moderation-expanded-text" [innerHTML]=
"videoBlock.reasonHtml"></span>
80 <my-embed [video]=
"videoBlock.video"></my-embed>
88 <ng-template pTemplate=
"emptymessage">
91 <div class=
"no-results">
92 <ng-container *
ngIf=
"search" i18n
>No blocked video found matching current filters.
</ng-container>
93 <ng-container *
ngIf=
"!search" i18n
>No blocked video found.
</ng-container>