1 <div class=
"admin-sub-header">
2 <div i18n
class=
"form-sub-title">Video abuses list
</div>
6 [value]=
"videoAbuses" [lazy]=
"true" [paginator]=
"true" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage"
7 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id"
9 <ng-template pTemplate=
"header">
11 <th style=
"width: 40px"></th>
12 <th i18n
style=
"width: 80px;">State
</th>
14 <th i18n
>Reporter
</th>
15 <th i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
17 <th style=
"width: 50px;"></th>
21 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-videoAbuse
>
24 <span *
ngIf=
"videoAbuse.moderationComment" class=
"expander" [pRowToggler]=
"videoAbuse">
25 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
30 <span *
ngIf=
"isVideoAbuseAccepted(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-ok"></span>
31 <span *
ngIf=
"isVideoAbuseRejected(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-remove"></span>
34 <td>{{ videoAbuse.reason }}
</td>
37 <a [href]=
"videoAbuse.reporterAccount.url" i18n-title
title=
"Go to the account" target=
"_blank" rel=
"noopener noreferrer">
38 {{ createByString(videoAbuse.reporterAccount) }}
42 <td>{{ videoAbuse.createdAt }}
</td>
45 <a [href]=
"videoAbuse.video.url" i18n-title
title=
"Go to the video" target=
"_blank" rel=
"noopener noreferrer">
46 {{ videoAbuse.video.name }}
50 <td class=
"action-cell">
51 <my-action-dropdown i18n-label
label=
"Actions" [actions]=
"videoAbuseActions" [entry]=
"videoAbuse"></my-action-dropdown>
56 <ng-template pTemplate=
"rowexpansion" let-videoAbuse
>
57 <tr class=
"moderation-comment">
59 <span i18n
class=
"moderation-comment-label">Moderation comment:
</span>
60 {{ videoAbuse.moderationComment }}
66 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>