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"
7 <ng-template pTemplate=
"caption">
11 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
12 (keyup)=
"onSearch($event)"
18 <ng-template pTemplate=
"header">
20 <th style=
"width: 40px;"></th>
21 <th style=
"width: 20%;" pResizableColumn i18n
>Reporter
</th>
23 <th style=
"width: 190px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
24 <th i18n
pSortableColumn=
"state" style=
"width: 80px;">State
<p-sortIcon field=
"state"></p-sortIcon></th>
25 <th style=
"width: 120px;"></th>
29 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-videoAbuse
>
31 <td class=
"c-hand" [pRowToggler]=
"videoAbuse" i18n-ngbTooltip
ngbTooltip=
"More information" placement=
"top-left" container=
"body">
32 <span class=
"expander">
33 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
38 <a [href]=
"videoAbuse.reporterAccount.url" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
39 <div class=
"chip two-lines">
42 [src]=
"videoAbuse.reporterAccount.avatar?.path"
43 (error)=
"switchToDefaultAvatar($event)"
47 {{ videoAbuse.reporterAccount.displayName }}
48 <span class=
"text-muted">{{ createByString(videoAbuse.reporterAccount) }}
</span>
54 <td *
ngIf=
"!videoAbuse.video.deleted">
55 <a [href]=
"getVideoUrl(videoAbuse)" class=
"video-table-video-link" i18n-title
title=
"Open video in a new tab" target=
"_blank" rel=
"noopener noreferrer">
56 <div class=
"video-table-video">
57 <div class=
"video-table-video-image">
58 <img [src]=
"videoAbuse.video.thumbnailPath">
60 class=
"video-table-video-image-label" *
ngIf=
"videoAbuse.count > 1"
61 i18n-title
title=
"This video has been reported multiple times."
63 {{ videoAbuse.nth }}/{{ videoAbuse.count }}
66 <div class=
"video-table-video-text">
68 {{ videoAbuse.video.name }}
69 <span *
ngIf=
"!videoAbuse.video.blacklisted" class=
"glyphicon glyphicon-new-window"></span>
70 <span *
ngIf=
"videoAbuse.video.blacklisted" i18n-title
title=
"Video was blacklisted" class=
"glyphicon glyphicon-ban-circle"></span>
72 <div class=
"text-muted" i18n
>by {{ videoAbuse.video.channel?.displayName }} on {{ videoAbuse.video.channel?.host }}
</div>
78 <td *
ngIf=
"videoAbuse.video.deleted" class=
"c-hand" [pRowToggler]=
"videoAbuse">
79 <div class=
"video-table-video" i18n-title
title=
"Video was deleted">
80 <div class=
"video-table-video-image">
81 <span i18n
>Deleted
</span>
83 <div class=
"video-table-video-text">
85 {{ videoAbuse.video.name }}
86 <span class=
"glyphicon glyphicon-trash"></span>
88 <div class=
"text-muted" i18n
>by {{ videoAbuse.video.channel?.displayName }} on {{ videoAbuse.video.channel?.host }}
</div>
93 <td class=
"c-hand" [pRowToggler]=
"videoAbuse">{{ videoAbuse.createdAt }}
</td>
95 <td class=
"c-hand video-abuse-states" [pRowToggler]=
"videoAbuse">
96 <span *
ngIf=
"isVideoAbuseAccepted(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-ok"></span>
97 <span *
ngIf=
"isVideoAbuseRejected(videoAbuse)" [title]=
"videoAbuse.state.label" class=
"glyphicon glyphicon-remove"></span>
98 <span *
ngIf=
"videoAbuse.moderationComment" container=
"body" placement=
"left auto" [ngbTooltip]=
"videoAbuse.moderationComment" class=
"glyphicon glyphicon-comment"></span>
101 <td class=
"action-cell">
103 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right auto" container=
"body"
104 i18n-label
label=
"Actions" [actions]=
"videoAbuseActions" [entry]=
"videoAbuse"
105 ></my-action-dropdown>
110 <ng-template pTemplate=
"rowexpansion" let-videoAbuse
>
112 <td class=
"expand-cell" colspan=
"6">
113 <div class=
"d-flex moderation-expanded">
114 <!-- report left part (report details) -->
117 <!-- report metadata -->
119 <span class=
"col-3 moderation-expanded-label" i18n
>Reporter
</span>
120 <span class=
"col-9 moderation-expanded-text">
124 [src]=
"videoAbuse.reporterAccount.avatar.path"
125 (error)=
"switchToDefaultAvatar($event)"
129 <span class=
"text-muted">{{ createByString(videoAbuse.reporterAccount) }}
</span>
132 <a [routerLink]=
"[ '/admin/moderation/video-abuses/list' ]" [queryParams]=
"{ 'search': videoAbuse.reporterAccount.displayName }" class=
"ml-auto text-muted video-details-links" i18n
>
133 {videoAbuse.countReportsForReporter, plural, =
1 {
1 report} other {{{ videoAbuse.countReportsForReporter }} reports}}
<span class=
"ml-1Â glyphicon glyphicon-flag"></span>
139 <span class=
"col-3 moderation-expanded-label" i18n
>Reportee
</span>
140 <span class=
"col-9 moderation-expanded-text">
144 [src]=
"videoAbuse.video.channel.ownerAccount?.avatar.path"
145 (error)=
"switchToDefaultAvatar($event)"
149 <span class=
"text-muted">{{ videoAbuse.video.channel.ownerAccount ? createByString(videoAbuse.video.channel.ownerAccount) : '' }}
</span>
152 <a [routerLink]=
"[ '/admin/moderation/video-abuses/list' ]" [queryParams]=
"{ 'search': videoAbuse.video.channel.ownerAccount.displayName }" class=
"ml-auto text-muted video-details-links" i18n
>
153 {videoAbuse.countReportsForReportee, plural, =
1 {
1 report} other {{{ videoAbuse.countReportsForReportee }} reports}}
<span class=
"ml-1Â glyphicon glyphicon-flag"></span>
159 <span class=
"col-3 moderation-expanded-label" i18n
>Updated
</span>
160 <time class=
"col-9 moderation-expanded-text video-details-date-updated">{{ videoAbuse.updatedAt | date: 'medium' }}
</time>
164 <div class=
"mt-3 d-flex">
165 <span class=
"col-3 moderation-expanded-label" i18n
>Report #{{ videoAbuse.id }}
</span>
166 <span class=
"col-9 moderation-expanded-text" [innerHTML]=
"videoAbuse.reasonHtml"></span>
169 <div class=
"mt-3 d-flex" *
ngIf=
"videoAbuse.moderationComment">
170 <span class=
"col-3 moderation-expanded-label" i18n
>Note
</span>
171 <span class=
"col-9 moderation-expanded-text" [innerHTML]=
"videoAbuse.moderationCommentHtml"></span>
176 <!-- report right part (video details) -->
178 <div class=
"screenratio">
179 <div *
ngIf=
"videoAbuse.video.deleted || videoAbuse.video.blacklisted">
180 <span i18n *
ngIf=
"videoAbuse.video.deleted">The video was deleted
</span>
181 <span i18n *
ngIf=
"!videoAbuse.video.deleted">The video was blacklisted
</span>
183 <div *
ngIf=
"!videoAbuse.video.deleted && !videoAbuse.video.blacklisted" [innerHTML]=
"videoAbuse.embedHtml"></div>
191 <ng-template pTemplate=
"emptymessage">
194 <div class=
"empty-table-message">
195 <ng-container *
ngIf=
"search" i18n
>No video abuses found matching current filters.
</ng-container>
196 <ng-container *
ngIf=
"!search" i18n
>No video abuses found.
</ng-container>
203 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>