]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-abuse-list/abuse-details.component.html
Add ability to filter my videos by live
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-abuse-list / abuse-details.component.html
CommitLineData
d95d1559
C
1<div class="d-flex moderation-expanded">
2 <!-- report left part (report details) -->
3 <div class="col-8">
4
5 <!-- report metadata -->
94148c90 6 <div class="d-flex" *ngIf="isAdminView && abuse.reporterAccount">
d95d1559 7 <span class="col-3 moderation-expanded-label" i18n>Reporter</span>
8ca56654 8
d95d1559 9 <span class="col-9 moderation-expanded-text">
1fd61899 10 <a [routerLink]="[ '.' ]" [queryParams]="{ 'search': 'reporter:&quot;' + abuse.reporterAccount.displayName + '&quot;' }"
8ca56654
C
11 class="chip"
12 >
746018f6 13 <my-actor-avatar [account]="abuse.reporterAccount"></my-actor-avatar>
d95d1559
C
14 <div>
15 <span class="text-muted">{{ abuse.reporterAccount.nameWithHost }}</span>
16 </div>
17 </a>
8ca56654 18
1fd61899 19 <a [routerLink]="[ '.' ]" [queryParams]="{ 'search': 'reporter:&quot;' + abuse.reporterAccount.displayName + '&quot;' }"
8ca56654
C
20 class="ml-auto text-muted abuse-details-links" i18n
21 >
d95d1559
C
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
8ca56654 27 <div class="d-flex" *ngIf="abuse.flaggedAccount">
d95d1559
C
28 <span class="col-3 moderation-expanded-label" i18n>Reportee</span>
29 <span class="col-9 moderation-expanded-text">
1fd61899 30 <a [routerLink]="[ '.' ]" [queryParams]="{ 'search': 'reportee:&quot;' +abuse.flaggedAccount.displayName + '&quot;' }"
8ca56654
C
31 class="chip"
32 >
746018f6 33 <my-actor-avatar [account]="abuse.flaggedAccount"></my-actor-avatar>
d95d1559 34 <div>
8ca56654 35 <span class="text-muted">{{ abuse.flaggedAccount ? abuse.flaggedAccount.nameWithHost : '' }}</span>
d95d1559
C
36 </div>
37 </a>
8ca56654 38
1fd61899 39 <a *ngIf="isAdminView" [routerLink]="[ '.' ]" [queryParams]="{ 'search': 'reportee:&quot;' +abuse.flaggedAccount.displayName + '&quot;' }"
8ca56654
C
40 class="ml-auto text-muted abuse-details-links" i18n
41 >
d95d1559
C
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>
8ca56654 49 <time class="col-9 moderation-expanded-text abuse-details-date-updated">{{ abuse.updatedAt | date: 'medium' }}</time>
d95d1559
C
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>
1fd61899 56 <a [routerLink]="[ '.' ]" [queryParams]="{ 'search': '#' + abuse.id }" class="ml-1 text-muted">#{{ abuse.id }}</a>
d95d1559
C
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">
1fd61899 64 <a *ngFor="let reason of getPredefinedReasons()" [routerLink]="[ '.' ]"
8ca56654
C
65 [queryParams]="{ 'search': 'tag:' + reason.id }" class="chip rectangular bg-secondary text-light"
66 >
d95d1559
C
67 <div>{{ reason.label }}</div>
68 </a>
69 </span>
70 </div>
71
8ca56654 72 <div *ngIf="abuse.video?.startAt" class="mt-2 d-flex">
d95d1559
C
73 <span class="col-3 moderation-expanded-label" i18n>Reported part</span>
74 <span class="col-9">
8ca56654 75 {{ startAt }}<ng-container *ngIf="abuse.video.endAt"> - {{ endAt }}</ng-container>
d95d1559
C
76 </span>
77 </div>
78
94148c90 79 <div class="mt-3 d-flex" *ngIf="isAdminView && abuse.moderationComment">
d95d1559 80 <span class="col-3 moderation-expanded-label" i18n>Note</span>
8ca56654 81 <span class="col-9 moderation-expanded-text d-block" [innerHTML]="abuse.moderationCommentHtml"></span>
d95d1559
C
82 </div>
83
84 </div>
85
8ca56654 86 <!-- report right part (video/comment details) -->
d95d1559 87 <div class="col-4">
8ca56654 88 <div *ngIf="abuse.video" class="screenratio">
71ab65d0
RK
89 <div *ngIf="abuse.video.deleted" i18n>The video was deleted</div>
90 <div *ngIf="!abuse.video.deleted" [innerHTML]="abuse.embedHtml"></div>
d95d1559 91 </div>
8ca56654
C
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>
d95d1559
C
100 </div>
101</div>