2 [value]=
"abuses" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" dataKey=
"id" [resizableColumns]=
"true"
4 [lazy]=
"true" (onLazyLoad)=
"loadLazy($event)" [lazyLoadOnInit]=
"false"
5 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
6 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} reports"
7 [expandedRowKeys]=
"expandedRows"
9 <ng-template pTemplate=
"caption">
12 <my-advanced-input-filter [filters]=
"inputFilters" (search)=
"onSearch($event)"></my-advanced-input-filter>
17 <ng-template pTemplate=
"header">
19 <th style=
"width: 40px;"></th>
20 <th style=
"width: 150px;"></th>
21 <th *
ngIf=
"isAdminView()" style=
"width: 20%;" pResizableColumn i18n
>Reporter
</th>
22 <th i18n
>Video/Comment/Account
</th>
23 <th style=
"width: 150px;" 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 i18n
style=
"width: 80px;">Messages
</th>
26 <th i18n *
ngIf=
"isAdminView()" style=
"width: 100px;">Internal note
</th>
30 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-abuse
>
32 <td class=
"expand-cell" [pRowToggler]=
"abuse">
33 <my-table-expander-icon [expanded]=
"expanded"></my-table-expander-icon>
36 <td class=
"action-cell">
38 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right top-right left auto" container=
"body"
39 i18n-label
label=
"Actions" [actions]=
"abuseActions" [entry]=
"abuse"
40 ></my-action-dropdown>
43 <td *
ngIf=
"isAdminView()">
44 <a *
ngIf=
"abuse.reporterAccount" [href]=
"abuse.reporterAccount.url" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
45 <div class=
"chip two-lines">
46 <my-actor-avatar [account]=
"abuse.reporterAccount" size=
"32"></my-actor-avatar>
48 {{ abuse.reporterAccount.displayName }}
49 <span>{{ abuse.reporterAccount.nameWithHost }}
</span>
54 <span i18n *
ngIf=
"!abuse.reporterAccount">
59 <ng-container *
ngIf=
"abuse.video">
61 <td *
ngIf=
"!abuse.video.deleted">
62 <my-video-cell [video]=
"abuse.video">
65 class=
"table-video-image-label" *
ngIf=
"abuse.count > 1"
66 i18n-title
title=
"This video has been reported multiple times."
68 {{ abuse.nth }}/{{ abuse.count }}
73 <my-global-icon *
ngIf=
"abuse.video.blacklisted" iconName=
"no" i18n-title
title=
"The video was blocked"></my-global-icon>
78 <td *
ngIf=
"abuse.video.deleted" class=
"c-hand" [pRowToggler]=
"abuse">
79 <div class=
"table-video" i18n-title
title=
"Video was deleted">
80 <div class=
"table-video-text">
82 {{ abuse.video.name }}
83 <my-global-icon iconName=
"delete"></my-global-icon>
85 <div i18n
>by {{ abuse.video.channel?.displayName }} on {{ abuse.video.channel?.host }}
</div>
91 <ng-container *
ngIf=
"abuse.comment">
93 <a [href]=
"getCommentUrl(abuse)" [innerHTML]=
"abuse.truncatedCommentHtml" class=
"table-comment-link"
94 [title]=
"abuse.comment.video.name" target=
"_blank" rel=
"noopener noreferrer"
97 <div class=
"comment-flagged-account" *
ngIf=
"abuse.flaggedAccount">by {{ abuse.flaggedAccount.displayName }}
</div>
101 <ng-container *
ngIf=
"!abuse.comment && !abuse.video">
102 <td *
ngIf=
"abuse.flaggedAccount">
103 <a [href]=
"getAccountUrl(abuse)" class=
"table-account-link" target=
"_blank" rel=
"noopener noreferrer">
104 <span>{{ abuse.flaggedAccount.displayName }}
</span>
106 <span class=
"account-flagged-handle">{{ abuse.flaggedAccount.nameWithHostForced }}
</span>
110 <td i18n *
ngIf=
"!abuse.flaggedAccount">
116 <td class=
"c-hand" [pRowToggler]=
"abuse">{{ abuse.createdAt | date: 'short' }}
</td>
118 <td class=
"c-hand abuse-states" [pRowToggler]=
"abuse">
119 <my-global-icon *
ngIf=
"isAbuseAccepted(abuse)" [title]=
"abuse.state.label" iconName=
"tick"></my-global-icon>
120 <my-global-icon *
ngIf=
"isAbuseRejected(abuse)" [title]=
"abuse.state.label" iconName=
"cross"></my-global-icon>
123 <td class=
"c-hand abuse-messages" (click)=
"openAbuseMessagesModal(abuse)">
124 <ng-container *
ngIf=
"isLocalAbuse(abuse)">
125 {{ abuse.countMessages }}
127 <my-global-icon iconName=
"message-circle"></my-global-icon>
131 <td *
ngIf=
"isAdminView()" class=
"internal-note" container=
"body" placement=
"left auto" [ngbTooltip]=
"abuse.moderationComment">
132 {{ abuse.moderationComment }}
137 <ng-template pTemplate=
"rowexpansion" let-abuse
>
139 <td *
ngIf=
"isAdminView()" class=
"expand-cell" colspan=
"8">
140 <my-abuse-details [abuse]=
"abuse" [isAdminView]=
"true"></my-abuse-details>
142 <td *
ngIf=
"!isAdminView()" class=
"expand-cell" colspan=
"6">
143 <my-abuse-details [abuse]=
"abuse" [isAdminView]=
"false"></my-abuse-details>
148 <ng-template pTemplate=
"emptymessage">
151 <div class=
"no-results">
152 <ng-container *
ngIf=
"search" i18n
>No abuses found matching current filters.
</ng-container>
153 <ng-container *
ngIf=
"!search" i18n
>No abuses found.
</ng-container>
160 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>
161 <my-abuse-message-modal #abuseMessagesModal [isAdminView]=
"isAdminView()" (countMessagesUpdated)=
"onCountMessagesUpdated($event)"></my-abuse-message-modal>