2 [value]=
"videoAbuses" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id" [resizableColumns]=
"true"
4 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
5 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} reports"
6 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
8 <ng-template pTemplate=
"caption">
11 <div class=
"input-group has-feedback has-clear">
12 <div class=
"input-group-prepend c-hand" ngbDropdown
placement=
"bottom-left auto" container=
"body">
13 <div class=
"input-group-text" ngbDropdownToggle
>
14 <span class=
"caret" aria-haspopup=
"menu" role=
"button"></span>
17 <div role=
"menu" ngbDropdownMenu
>
18 <h6 class=
"dropdown-header" i18n
>Advanced report filters
</h6>
19 <a [routerLink]=
"[ '/admin/moderation/video-abuses/list' ]" [queryParams]=
"{ 'search': 'state:pending' }" class=
"dropdown-item" i18n
>Unsolved reports
</a>
20 <a [routerLink]=
"[ '/admin/moderation/video-abuses/list' ]" [queryParams]=
"{ 'search': 'state:accepted' }" class=
"dropdown-item" i18n
>Accepted reports
</a>
21 <a [routerLink]=
"[ '/admin/moderation/video-abuses/list' ]" [queryParams]=
"{ 'search': 'state:rejected' }" class=
"dropdown-item" i18n
>Refused reports
</a>
22 <a [routerLink]=
"[ '/admin/moderation/video-abuses/list' ]" [queryParams]=
"{ 'search': 'videoIs:blacklisted' }" class=
"dropdown-item" i18n
>Reports with blocked videos
</a>
23 <a [routerLink]=
"[ '/admin/moderation/video-abuses/list' ]" [queryParams]=
"{ 'search': 'videoIs:deleted' }" class=
"dropdown-item" i18n
>Reports with deleted videos
</a>
27 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
28 (keyup)=
"onAbuseSearch($event)"
30 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetTableFilter()"></a>
31 <span class=
"sr-only" i18n
>Clear filters
</span>
37 <ng-template pTemplate=
"header">
39 <th style=
"width: 40px;"></th>
40 <th style=
"width: 20%;" pResizableColumn i18n
>Reporter
</th>
42 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
43 <th i18n
pSortableColumn=
"state" style=
"width: 80px;">State
<p-sortIcon field=
"state"></p-sortIcon></th>
44 <th style=
"width: 150px;"></th>
48 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-videoAbuse
>
50 <td class=
"c-hand" [pRowToggler]=
"videoAbuse" i18n-ngbTooltip
ngbTooltip=
"More information" placement=
"top-left" container=
"body">
51 <span class=
"expander">
52 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
57 <a [href]=
"videoAbuse.reporterAccount.url" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
58 <div class=
"chip two-lines">
61 [src]=
"videoAbuse.reporterAccount.avatar?.path"
62 (error)=
"switchToDefaultAvatar($event)"
66 {{ videoAbuse.reporterAccount.displayName }}
67 <span class=
"text-muted">{{ videoAbuse.reporterAccount.nameWithHost }}
</span>
73 <td *
ngIf=
"!videoAbuse.video.deleted">
74 <a [href]=
"getVideoUrl(videoAbuse)" class=
"video-table-video-link" i18n-title
title=
"Open video in a new tab" target=
"_blank" rel=
"noopener noreferrer">
75 <div class=
"video-table-video">
76 <div class=
"video-table-video-image">
77 <img [src]=
"videoAbuse.video.thumbnailPath">
79 class=
"video-table-video-image-label" *
ngIf=
"videoAbuse.count > 1"
80 i18n-title
title=
"This video has been reported multiple times."
82 {{ videoAbuse.nth }}/{{ videoAbuse.count }}
85 <div class=
"video-table-video-text">
87 <span *
ngIf=
"!videoAbuse.video.blacklisted" class=
"glyphicon glyphicon-new-window"></span>
88 <span *
ngIf=
"videoAbuse.video.blacklisted" i18n-title
title=
"The video was blocked" class=
"glyphicon glyphicon-ban-circle"></span>
89 {{ videoAbuse.video.name }}
91 <div class=
"text-muted" i18n
>by {{ videoAbuse.video.channel?.displayName }} on {{ videoAbuse.video.channel?.host }}
</div>
97 <td *
ngIf=
"videoAbuse.video.deleted" class=
"c-hand" [pRowToggler]=
"videoAbuse">
98 <div class=
"video-table-video" i18n-title
title=
"Video was deleted">
99 <div class=
"video-table-video-image">
100 <span i18n
>Deleted
</span>
102 <div class=
"video-table-video-text">
104 {{ videoAbuse.video.name }}
105 <span class=
"glyphicon glyphicon-trash"></span>
107 <div class=
"text-muted" i18n
>by {{ videoAbuse.video.channel?.displayName }} on {{ videoAbuse.video.channel?.host }}
</div>
112 <td class=
"c-hand" [pRowToggler]=
"videoAbuse">{{ videoAbuse.createdAt | date: 'short' }}
</td>
114 <td class=
"c-hand video-abuse-states" [pRowToggler]=
"videoAbuse">
115 <span *
ngIf=
"isVideoAbuseAccepted(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-ok"></span>
116 <span *
ngIf=
"isVideoAbuseRejected(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-remove"></span>
117 <span *
ngIf=
"videoAbuse.moderationComment" container=
"body" placement=
"left auto" [ngbTooltip]=
"videoAbuse.moderationComment" class=
"glyphicon glyphicon-comment"></span>
120 <td class=
"action-cell">
122 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right top-right left auto" container=
"body"
123 i18n-label
label=
"Actions" [actions]=
"videoAbuseActions" [entry]=
"videoAbuse"
124 ></my-action-dropdown>
129 <ng-template pTemplate=
"rowexpansion" let-videoAbuse
>
131 <td class=
"expand-cell" colspan=
"6">
132 <my-video-abuse-details [videoAbuse]=
"videoAbuse"></my-video-abuse-details>
137 <ng-template pTemplate=
"emptymessage">
140 <div class=
"empty-table-message">
141 <ng-container *
ngIf=
"search" i18n
>No video abuses found matching current filters.
</ng-container>
142 <ng-container *
ngIf=
"!search" i18n
>No video abuses found.
</ng-container>
149 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>