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>
8 <th i18n
pSortableColumn=
"state" style=
"width: 80px;">State
<p-sortIcon field=
"state"></p-sortIcon></th>
10 <th i18n
>Reporter
</th>
11 <th i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
13 <th style=
"width: 50px;"></th>
17 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-videoAbuse
>
20 <span *
ngIf=
"videoAbuse.moderationComment" class=
"expander" [pRowToggler]=
"videoAbuse">
21 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
26 <span *
ngIf=
"isVideoAbuseAccepted(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-ok"></span>
27 <span *
ngIf=
"isVideoAbuseRejected(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-remove"></span>
30 <td>{{ videoAbuse.reason }}
</td>
33 <a [href]=
"videoAbuse.reporterAccount.url" i18n-title
title=
"Go to the account" target=
"_blank" rel=
"noopener noreferrer">
34 {{ createByString(videoAbuse.reporterAccount) }}
38 <td>{{ videoAbuse.createdAt }}
</td>
41 <a [href]=
"getVideoUrl(videoAbuse)" i18n-title
title=
"Go to the video" target=
"_blank" rel=
"noopener noreferrer">
42 {{ videoAbuse.video.name }}
46 <td class=
"action-cell">
47 <my-action-dropdown i18n-label
label=
"Actions" [actions]=
"videoAbuseActions" [entry]=
"videoAbuse"></my-action-dropdown>
52 <ng-template pTemplate=
"rowexpansion" let-videoAbuse
>
53 <tr class=
"moderation-comment">
55 <span i18n
class=
"moderation-comment-label">Moderation comment:
</span>
56 {{ videoAbuse.moderationComment }}
62 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>