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 *
ngIf=
"videoBlock.reason" class=
"expand-cell c-hand" [pRowToggler]=
"videoBlock" i18n-ngbTooltip
ngbTooltip=
"More information" placement=
"top-left" container=
"body">
37 <span class=
"expander">
38 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
42 <td class=
"action-cell">
44 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right" container=
"body"
45 i18n-label
label=
"Actions" [actions]=
"videoBlocklistActions" [entry]=
"videoBlock"
46 ></my-action-dropdown>
50 <a [href]=
"getVideoUrl(videoBlock)" class=
"table-video-link" [title]=
"videoBlock.video.name" target=
"_blank" rel=
"noopener noreferrer">
51 <div class=
"table-video">
52 <div class=
"table-video-image">
53 <img [src]=
"videoBlock.video.thumbnailPath">
55 <div class=
"table-video-text">
57 <my-global-icon i18n-title
title=
"The video was blocked due to automatic blocking of new videos" *
ngIf=
"videoBlock.type == 2" iconName=
"robot"></my-global-icon>
58 {{ videoBlock.video.name }}
60 <div class=
"text-muted">by {{ videoBlock.video.channel?.displayName }} on {{ videoBlock.video.channel?.host }}
</div>
67 <span *
ngIf=
"videoBlock.video.nsfw" class=
"badge badge-red" i18n
>NSFW
</span>
71 <span *
ngIf=
"videoBlock.unfederated" class=
"badge badge-blue" i18n
>Unfederated
</span>
75 {{ videoBlock.createdAt | date: 'short' }}
80 <ng-template pTemplate=
"rowexpansion" let-videoBlock
>
82 <td class=
"expand-cell" colspan=
"6">
83 <div class=
"d-flex moderation-expanded">
85 <!-- block right part (block details) -->
87 <span class=
"col-3 moderation-expanded-label" i18n
>Block reason:
</span>
88 <span class=
"col-9 moderation-expanded-text" [innerHTML]=
"videoBlock.reasonHtml"></span>
91 <!-- block right part (video embed) -->
93 <div class=
"screenratio">
94 <div [innerHTML]=
"videoBlock.embedHtml"></div>
103 <ng-template pTemplate=
"emptymessage">
106 <div class=
"no-results">
107 <ng-container *
ngIf=
"search" i18n
>No blocked video found matching current filters.
</ng-container>
108 <ng-container *
ngIf=
"!search" i18n
>No blocked video found.
</ng-container>