]>
Commit | Line | Data |
---|---|---|
1 | <div class="d-flex moderation-expanded"> | |
2 | <!-- report left part (report details) --> | |
3 | <div class="col-8"> | |
4 | ||
5 | <!-- report metadata --> | |
6 | <div class="d-flex" *ngIf="isAdminView && abuse.reporterAccount"> | |
7 | <span class="col-3 moderation-expanded-label" i18n>Reporter</span> | |
8 | ||
9 | <span class="col-9 moderation-expanded-text"> | |
10 | <a [routerLink]="[ baseRoute ]" [queryParams]="{ 'search': 'reporter:"' + abuse.reporterAccount.displayName + '"' }" | |
11 | class="chip" | |
12 | > | |
13 | <my-account-avatar [account]="abuse.reporterAccount"></my-account-avatar> | |
14 | <div> | |
15 | <span class="text-muted">{{ abuse.reporterAccount.nameWithHost }}</span> | |
16 | </div> | |
17 | </a> | |
18 | ||
19 | <a [routerLink]="[ baseRoute ]" [queryParams]="{ 'search': 'reporter:"' + abuse.reporterAccount.displayName + '"' }" | |
20 | class="ml-auto text-muted abuse-details-links" i18n | |
21 | > | |
22 | {abuse.countReportsForReporter, plural, =1 {1 report} other {{{ abuse.countReportsForReporter }} reports}}<span class="ml-1Â glyphicon glyphicon-flag"></span> | |
23 | </a> | |
24 | </span> | |
25 | </div> | |
26 | ||
27 | <div class="d-flex" *ngIf="abuse.flaggedAccount"> | |
28 | <span class="col-3 moderation-expanded-label" i18n>Reportee</span> | |
29 | <span class="col-9 moderation-expanded-text"> | |
30 | <a [routerLink]="[ baseRoute ]" [queryParams]="{ 'search': 'reportee:"' +abuse.flaggedAccount.displayName + '"' }" | |
31 | class="chip" | |
32 | > | |
33 | <my-account-avatar [account]="abuse.flaggedAccount"></my-account-avatar> | |
34 | <div> | |
35 | <span class="text-muted">{{ abuse.flaggedAccount ? abuse.flaggedAccount.nameWithHost : '' }}</span> | |
36 | </div> | |
37 | </a> | |
38 | ||
39 | <a *ngIf="isAdminView" [routerLink]="[ baseRoute ]" [queryParams]="{ 'search': 'reportee:"' +abuse.flaggedAccount.displayName + '"' }" | |
40 | class="ml-auto text-muted abuse-details-links" i18n | |
41 | > | |
42 | {abuse.countReportsForReportee, plural, =1 {1 report} other {{{ abuse.countReportsForReportee }} reports}}<span class="ml-1Â glyphicon glyphicon-flag"></span> | |
43 | </a> | |
44 | </span> | |
45 | </div> | |
46 | ||
47 | <div class="d-flex" *ngIf="abuse.updatedAt"> | |
48 | <span class="col-3 moderation-expanded-label" i18n>Updated</span> | |
49 | <time class="col-9 moderation-expanded-text abuse-details-date-updated">{{ abuse.updatedAt | date: 'medium' }}</time> | |
50 | </div> | |
51 | ||
52 | <!-- report text --> | |
53 | <div class="mt-3 d-flex"> | |
54 | <span class="col-3 moderation-expanded-label"> | |
55 | <ng-container i18n>Report</ng-container> | |
56 | <a [routerLink]="[ baseRoute ]" [queryParams]="{ 'search': '#' + abuse.id }" class="ml-1 text-muted">#{{ abuse.id }}</a> | |
57 | </span> | |
58 | <span class="col-9 moderation-expanded-text" [innerHTML]="abuse.reasonHtml"></span> | |
59 | </div> | |
60 | ||
61 | <div *ngIf="getPredefinedReasons()" class="mt-2 d-flex"> | |
62 | <span class="col-3"></span> | |
63 | <span class="col-9"> | |
64 | <a *ngFor="let reason of getPredefinedReasons()" [routerLink]="[ baseRoute ]" | |
65 | [queryParams]="{ 'search': 'tag:' + reason.id }" class="chip rectangular bg-secondary text-light" | |
66 | > | |
67 | <div>{{ reason.label }}</div> | |
68 | </a> | |
69 | </span> | |
70 | </div> | |
71 | ||
72 | <div *ngIf="abuse.video?.startAt" class="mt-2 d-flex"> | |
73 | <span class="col-3 moderation-expanded-label" i18n>Reported part</span> | |
74 | <span class="col-9"> | |
75 | {{ startAt }}<ng-container *ngIf="abuse.video.endAt"> - {{ endAt }}</ng-container> | |
76 | </span> | |
77 | </div> | |
78 | ||
79 | <div class="mt-3 d-flex" *ngIf="isAdminView && abuse.moderationComment"> | |
80 | <span class="col-3 moderation-expanded-label" i18n>Note</span> | |
81 | <span class="col-9 moderation-expanded-text d-block" [innerHTML]="abuse.moderationCommentHtml"></span> | |
82 | </div> | |
83 | ||
84 | </div> | |
85 | ||
86 | <!-- report right part (video/comment details) --> | |
87 | <div class="col-4"> | |
88 | <div *ngIf="abuse.video" class="screenratio"> | |
89 | <div *ngIf="abuse.video.deleted" i18n>The video was deleted</div> | |
90 | <div *ngIf="!abuse.video.deleted" [innerHTML]="abuse.embedHtml"></div> | |
91 | </div> | |
92 | ||
93 | <div *ngIf="abuse.comment" class="comment-html"> | |
94 | <div> | |
95 | <strong i18n>Comment:</strong> | |
96 | </div> | |
97 | ||
98 | <div [innerHTML]="abuse.commentHtml"></div> | |
99 | </div> | |
100 | </div> | |
101 | </div> |