2 [value]=
"videoAbuses" [lazy]=
"true" [paginator]=
"true" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id"
5 <ng-template pTemplate=
"header">
7 <th style=
"width: 40px"></th>
9 <th i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
11 <th i18n
pSortableColumn=
"state" style=
"width: 80px;">State
<p-sortIcon field=
"state"></p-sortIcon></th>
12 <th style=
"width: 120px;"></th>
16 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-videoAbuse
>
19 <td class=
"expand-cell">
20 <span class=
"expander" i18n-ngbTooltip
ngbTooltip=
"More information" [pRowToggler]=
"videoAbuse">
21 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
26 <a [href]=
"videoAbuse.reporterAccount.url" i18n-title
title=
"Go to the account" target=
"_blank" rel=
"noopener noreferrer">
27 {{ createByString(videoAbuse.reporterAccount) }}
31 <td>{{ videoAbuse.createdAt }}
</td>
34 <a [href]=
"getVideoUrl(videoAbuse)" i18n-title
title=
"Go to the video" target=
"_blank" rel=
"noopener noreferrer">
35 {{ videoAbuse.video.name }}
40 <span *
ngIf=
"isVideoAbuseAccepted(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-ok"></span>
41 <span *
ngIf=
"isVideoAbuseRejected(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-remove"></span>
44 <td class=
"action-cell">
45 <my-action-dropdown placement=
"bottom-right" i18n-label
label=
"Actions" [actions]=
"videoAbuseActions" [entry]=
"videoAbuse"></my-action-dropdown>
50 <ng-template pTemplate=
"rowexpansion" let-videoAbuse
>
52 <td class=
"moderation-expanded" colspan=
"6">
54 <span i18n
class=
"moderation-expanded-label">Reason:
</span>
55 <span class=
"moderation-expanded-text" [innerHTML]=
"videoAbuse.reasonHtml"></span>
57 <div *
ngIf=
"videoAbuse.moderationComment">
58 <span i18n
class=
"moderation-expanded-label">Moderation comment:
</span>
59 <span class=
"moderation-expanded-text" [innerHTML]=
"videoAbuse.moderationCommentHtml"></span>
66 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>