2 [value]=
"abuses" [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"
6 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
8 <ng-template pTemplate=
"caption">
11 <my-advanced-input-filter [filters]=
"inputFilters" (search)=
"onSearch($event)" (resetTableFilter)=
"resetTableFilter()"></my-advanced-input-filter>
16 <ng-template pTemplate=
"header">
18 <th style=
"width: 40px;"></th>
19 <th style=
"width: 150px;"></th>
20 <th *
ngIf=
"isAdminView()" style=
"width: 20%;" pResizableColumn i18n
>Reporter
</th>
21 <th i18n
>Video/Comment/Account
</th>
22 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
23 <th i18n
pSortableColumn=
"state" style=
"width: 80px;">State
<p-sortIcon field=
"state"></p-sortIcon></th>
24 <th i18n
style=
"width: 80px;">Messages
</th>
25 <th i18n *
ngIf=
"isAdminView()" style=
"width: 100px;">Internal note
</th>
29 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-abuse
>
31 <td class=
"expand-cell c-hand" [pRowToggler]=
"abuse" 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>
37 <td class=
"action-cell">
39 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right top-right left auto" container=
"body"
40 i18n-label
label=
"Actions" [actions]=
"abuseActions" [entry]=
"abuse"
41 ></my-action-dropdown>
44 <td *
ngIf=
"isAdminView()">
45 <a *
ngIf=
"abuse.reporterAccount" [href]=
"abuse.reporterAccount.url" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
46 <div class=
"chip two-lines">
47 <my-actor-avatar [account]=
"abuse.reporterAccount"></my-actor-avatar>
49 {{ abuse.reporterAccount.displayName }}
50 <span>{{ abuse.reporterAccount.nameWithHost }}
</span>
55 <span i18n *
ngIf=
"!abuse.reporterAccount">
60 <ng-container *
ngIf=
"abuse.video">
62 <td *
ngIf=
"!abuse.video.deleted">
63 <a [href]=
"getVideoUrl(abuse)" class=
"table-video-link" [title]=
"abuse.video.name" target=
"_blank" rel=
"noopener noreferrer">
64 <div class=
"table-video">
65 <div class=
"table-video-image">
66 <img [src]=
"abuse.video.thumbnailPath">
68 class=
"table-video-image-label" *
ngIf=
"abuse.count > 1"
69 i18n-title
title=
"This video has been reported multiple times."
71 {{ abuse.nth }}/{{ abuse.count }}
75 <div class=
"table-video-text">
77 <span *
ngIf=
"!abuse.video.blacklisted" class=
"glyphicon glyphicon-new-window"></span>
78 <span *
ngIf=
"abuse.video.blacklisted" i18n-title
title=
"The video was blocked" class=
"glyphicon glyphicon-ban-circle"></span>
79 {{ abuse.video.name }}
81 <div i18n
>by {{ abuse.video.channel?.displayName }} on {{ abuse.video.channel?.host }}
</div>
87 <td *
ngIf=
"abuse.video.deleted" class=
"c-hand" [pRowToggler]=
"abuse">
88 <div class=
"table-video" i18n-title
title=
"Video was deleted">
89 <div class=
"table-video-image">
90 <span i18n
>Deleted
</span>
93 <div class=
"table-video-text">
95 {{ abuse.video.name }}
96 <span class=
"glyphicon glyphicon-trash"></span>
98 <div i18n
>by {{ abuse.video.channel?.displayName }} on {{ abuse.video.channel?.host }}
</div>
104 <ng-container *
ngIf=
"abuse.comment">
106 <a [href]=
"getCommentUrl(abuse)" [innerHTML]=
"abuse.truncatedCommentHtml" class=
"table-comment-link"
107 [title]=
"abuse.comment.video.name" target=
"_blank" rel=
"noopener noreferrer"
110 <div class=
"comment-flagged-account" *
ngIf=
"abuse.flaggedAccount">by {{ abuse.flaggedAccount.displayName }}
</div>
114 <ng-container *
ngIf=
"!abuse.comment && !abuse.video">
115 <td *
ngIf=
"abuse.flaggedAccount">
116 <a [href]=
"getAccountUrl(abuse)" class=
"table-account-link" target=
"_blank" rel=
"noopener noreferrer">
117 <span>{{ abuse.flaggedAccount.displayName }}
</span>
119 <span class=
"account-flagged-handle">{{ abuse.flaggedAccount.nameWithHostForced }}
</span>
123 <td i18n *
ngIf=
"!abuse.flaggedAccount">
129 <td class=
"c-hand" [pRowToggler]=
"abuse">{{ abuse.createdAt | date: 'short' }}
</td>
131 <td class=
"c-hand abuse-states" [pRowToggler]=
"abuse">
132 <span *
ngIf=
"isAbuseAccepted(abuse)" [title]=
"abuse.state.label" class=
"glyphicon glyphicon-ok"></span>
133 <span *
ngIf=
"isAbuseRejected(abuse)" [title]=
"abuse.state.label" class=
"glyphicon glyphicon-remove"></span>
136 <td class=
"c-hand abuse-messages" (click)=
"openAbuseMessagesModal(abuse)">
137 <ng-container *
ngIf=
"isLocalAbuse(abuse)">
138 {{ abuse.countMessages }}
140 <my-global-icon iconName=
"message-circle"></my-global-icon>
144 <td *
ngIf=
"isAdminView()" class=
"internal-note" container=
"body" placement=
"left auto" [ngbTooltip]=
"abuse.moderationComment">
145 {{ abuse.moderationComment }}
150 <ng-template pTemplate=
"rowexpansion" let-abuse
>
152 <td class=
"expand-cell" colspan=
"8">
153 <my-abuse-details [abuse]=
"abuse" [isAdminView]=
"isAdminView()"></my-abuse-details>
158 <ng-template pTemplate=
"emptymessage">
161 <div class=
"no-results">
162 <ng-container *
ngIf=
"search" i18n
>No abuses found matching current filters.
</ng-container>
163 <ng-container *
ngIf=
"!search" i18n
>No abuses found.
</ng-container>
170 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>
171 <my-abuse-message-modal #abuseMessagesModal [isAdminView]=
"isAdminView()" (countMessagesUpdated)=
"onCountMessagesUpdated($event)"></my-abuse-message-modal>