2 <my-global-icon iconName=
"flag" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Reports
</ng-container>
7 [value]=
"abuses" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
8 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id" [resizableColumns]=
"true" [lazyLoadOnInit]=
"false"
9 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
10 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} reports"
11 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
13 <ng-template pTemplate=
"caption">
16 <div class=
"input-group has-feedback has-clear">
17 <div class=
"input-group-prepend c-hand" ngbDropdown
placement=
"bottom-left auto" container=
"body">
18 <div class=
"input-group-text" ngbDropdownToggle
>
19 <span class=
"caret" aria-haspopup=
"menu" role=
"button"></span>
22 <div role=
"menu" ngbDropdownMenu
>
23 <h6 class=
"dropdown-header" i18n
>Advanced report filters
</h6>
24 <a [routerLink]=
"[ '/admin/moderation/abuses/list' ]" [queryParams]=
"{ 'search': 'state:pending' }" class=
"dropdown-item" i18n
>Unsolved reports
</a>
25 <a [routerLink]=
"[ '/admin/moderation/abuses/list' ]" [queryParams]=
"{ 'search': 'state:accepted' }" class=
"dropdown-item" i18n
>Accepted reports
</a>
26 <a [routerLink]=
"[ '/admin/moderation/abuses/list' ]" [queryParams]=
"{ 'search': 'state:rejected' }" class=
"dropdown-item" i18n
>Refused reports
</a>
27 <a [routerLink]=
"[ '/admin/moderation/abuses/list' ]" [queryParams]=
"{ 'search': 'videoIs:blacklisted' }" class=
"dropdown-item" i18n
>Reports with blocked videos
</a>
28 <a [routerLink]=
"[ '/admin/moderation/abuses/list' ]" [queryParams]=
"{ 'search': 'videoIs:deleted' }" class=
"dropdown-item" i18n
>Reports with deleted videos
</a>
32 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
33 (keyup)=
"onAbuseSearch($event)"
35 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetTableFilter()"></a>
36 <span class=
"sr-only" i18n
>Clear filters
</span>
42 <ng-template pTemplate=
"header">
44 <th style=
"width: 40px;"></th>
45 <th style=
"width: 20%;" pResizableColumn i18n
>Reporter
</th>
46 <th i18n
>Video/Comment/Account
</th>
47 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
48 <th i18n
pSortableColumn=
"state" style=
"width: 80px;">State
<p-sortIcon field=
"state"></p-sortIcon></th>
49 <th style=
"width: 150px;"></th>
53 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-abuse
>
55 <td class=
"c-hand" [pRowToggler]=
"abuse" i18n-ngbTooltip
ngbTooltip=
"More information" placement=
"top-left" container=
"body">
56 <span class=
"expander">
57 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
62 <a *
ngIf=
"abuse.reporterAccount" [href]=
"abuse.reporterAccount.url" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
63 <div class=
"chip two-lines">
66 [src]=
"abuse.reporterAccount.avatar?.path"
67 (error)=
"switchToDefaultAvatar($event)"
71 {{ abuse.reporterAccount.displayName }}
72 <span>{{ abuse.reporterAccount.nameWithHost }}
</span>
77 <span i18n *
ngIf=
"!abuse.reporterAccount">
82 <ng-container *
ngIf=
"abuse.video">
84 <td *
ngIf=
"!abuse.video.deleted">
85 <a [href]=
"getVideoUrl(abuse)" class=
"table-video-link" [title]=
"abuse.video.name" target=
"_blank" rel=
"noopener noreferrer">
86 <div class=
"table-video">
87 <div class=
"table-video-image">
88 <img [src]=
"abuse.video.thumbnailPath">
90 class=
"table-video-image-label" *
ngIf=
"abuse.count > 1"
91 i18n-title
title=
"This video has been reported multiple times."
93 {{ abuse.nth }}/{{ abuse.count }}
97 <div class=
"table-video-text">
99 <span *
ngIf=
"!abuse.video.blacklisted" class=
"glyphicon glyphicon-new-window"></span>
100 <span *
ngIf=
"abuse.video.blacklisted" i18n-title
title=
"The video was blocked" class=
"glyphicon glyphicon-ban-circle"></span>
101 {{ abuse.video.name }}
103 <div i18n
>by {{ abuse.video.channel?.displayName }} on {{ abuse.video.channel?.host }}
</div>
109 <td *
ngIf=
"abuse.video.deleted" class=
"c-hand" [pRowToggler]=
"abuse">
110 <div class=
"table-video" i18n-title
title=
"Video was deleted">
111 <div class=
"table-video-image">
112 <span i18n
>Deleted
</span>
115 <div class=
"table-video-text">
117 {{ abuse.video.name }}
118 <span class=
"glyphicon glyphicon-trash"></span>
120 <div i18n
>by {{ abuse.video.channel?.displayName }} on {{ abuse.video.channel?.host }}
</div>
126 <ng-container *
ngIf=
"abuse.comment">
128 <a [href]=
"getCommentUrl(abuse)" [innerHTML]=
"abuse.truncatedCommentHtml" class=
"table-comment-link"
129 [title]=
"abuse.comment.video.name" target=
"_blank" rel=
"noopener noreferrer"
132 <div class=
"comment-flagged-account" *
ngIf=
"abuse.flaggedAccount">by {{ abuse.flaggedAccount.displayName }}
</div>
136 <ng-container *
ngIf=
"!abuse.comment && !abuse.video">
137 <td *
ngIf=
"abuse.flaggedAccount">
138 <a [href]=
"getAccountUrl(abuse)" class=
"table-account-link" target=
"_blank" rel=
"noopener noreferrer">
139 <span>{{ abuse.flaggedAccount.displayName }}
</span>
141 <span class=
"account-flagged-handle">{{ abuse.flaggedAccount.nameWithHostForced }}
</span>
145 <td i18n *
ngIf=
"!abuse.flaggedAccount">
152 <td class=
"c-hand" [pRowToggler]=
"abuse">{{ abuse.createdAt | date: 'short' }}
</td>
154 <td class=
"c-hand abuse-states" [pRowToggler]=
"abuse">
155 <span *
ngIf=
"isAbuseAccepted(abuse)" [title]=
"abuse.state.label" class=
"glyphicon glyphicon-ok"></span>
156 <span *
ngIf=
"isAbuseRejected(abuse)" [title]=
"abuse.state.label" class=
"glyphicon glyphicon-remove"></span>
157 <span *
ngIf=
"abuse.moderationComment" container=
"body" placement=
"left auto" [ngbTooltip]=
"abuse.moderationComment" class=
"glyphicon glyphicon-comment"></span>
160 <td class=
"action-cell">
162 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right top-right left auto" container=
"body"
163 i18n-label
label=
"Actions" [actions]=
"abuseActions" [entry]=
"abuse"
164 ></my-action-dropdown>
169 <ng-template pTemplate=
"rowexpansion" let-abuse
>
171 <td class=
"expand-cell" colspan=
"6">
172 <my-abuse-details [abuse]=
"abuse"></my-abuse-details>
177 <ng-template pTemplate=
"emptymessage">
180 <div class=
"no-results">
181 <ng-container *
ngIf=
"search" i18n
>No abuses found matching current filters.
</ng-container>
182 <ng-container *
ngIf=
"!search" i18n
>No abuses found.
</ng-container>
189 <my-moderation-comment-modal #moderationCommentModal (commentUpdated)=
"onModerationCommentUpdated()"></my-moderation-comment-modal>