2 [value]=
"videoAbuses" [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} reports"
7 <ng-template pTemplate=
"header">
9 <th style=
"width: 40px;"></th>
10 <th i18n
>Reporter
</th>
11 <th style=
"width: 200px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
13 <th i18n
pSortableColumn=
"state" style=
"width: 80px;">State
<p-sortIcon field=
"state"></p-sortIcon></th>
14 <th style=
"width: 120px;"></th>
18 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-videoAbuse
>
20 <td class=
"c-hand" [pRowToggler]=
"videoAbuse" i18n-ngbTooltip
ngbTooltip=
"More information" placement=
"top-left" container=
"body">
21 <span class=
"expander">
22 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
27 <a [href]=
"videoAbuse.reporterAccount.url" i18n-title
title=
"Go to the account" target=
"_blank" rel=
"noopener noreferrer">
28 {{ createByString(videoAbuse.reporterAccount) }}
32 <td>{{ videoAbuse.createdAt }}
</td>
35 <a [href]=
"getVideoUrl(videoAbuse)" i18n-title
title=
"Open video in a new tab" target=
"_blank" rel=
"noopener noreferrer">
36 {{ videoAbuse.video.name }}
41 <span *
ngIf=
"isVideoAbuseAccepted(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-ok"></span>
42 <span *
ngIf=
"isVideoAbuseRejected(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-remove"></span>
45 <td class=
"action-cell">
46 <my-action-dropdown placement=
"bottom-right" i18n-label
label=
"Actions" [actions]=
"videoAbuseActions" [entry]=
"videoAbuse"></my-action-dropdown>
51 <ng-template pTemplate=
"rowexpansion" let-videoAbuse
>
53 <td class=
"moderation-expanded" colspan=
"6">
55 <span i18n
class=
"moderation-expanded-label">Reason:
</span>
56 <span class=
"moderation-expanded-text" [innerHTML]=
"videoAbuse.reasonHtml"></span>
58 <div *
ngIf=
"videoAbuse.moderationComment">
59 <span i18n
class=
"moderation-expanded-label">Moderation comment:
</span>
60 <span class=
"moderation-expanded-text" [innerHTML]=
"videoAbuse.moderationCommentHtml"></span>
67 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>