diff options
Diffstat (limited to 'client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html')
-rw-r--r-- | client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html new file mode 100644 index 000000000..722ff7906 --- /dev/null +++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html | |||
@@ -0,0 +1,62 @@ | |||
1 | <p-table | ||
2 | [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | ||
3 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" | ||
4 | > | ||
5 | <ng-template pTemplate="header"> | ||
6 | <tr> | ||
7 | <th style="width: 40px"></th> | ||
8 | <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th> | ||
9 | <th i18n>Reason</th> | ||
10 | <th i18n>Reporter</th> | ||
11 | <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | ||
12 | <th i18n>Video</th> | ||
13 | <th style="width: 50px;"></th> | ||
14 | </tr> | ||
15 | </ng-template> | ||
16 | |||
17 | <ng-template pTemplate="body" let-expanded="expanded" let-videoAbuse> | ||
18 | <tr> | ||
19 | <td> | ||
20 | <span *ngIf="videoAbuse.moderationComment" class="expander" [pRowToggler]="videoAbuse"> | ||
21 | <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i> | ||
22 | </span> | ||
23 | </td> | ||
24 | |||
25 | <td> | ||
26 | <span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span> | ||
27 | <span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span> | ||
28 | </td> | ||
29 | |||
30 | <td>{{ videoAbuse.reason }}</td> | ||
31 | |||
32 | <td> | ||
33 | <a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer"> | ||
34 | {{ createByString(videoAbuse.reporterAccount) }} | ||
35 | </a> | ||
36 | </td> | ||
37 | |||
38 | <td>{{ videoAbuse.createdAt }}</td> | ||
39 | |||
40 | <td> | ||
41 | <a [href]="getVideoUrl(videoAbuse)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer"> | ||
42 | {{ videoAbuse.video.name }} | ||
43 | </a> | ||
44 | </td> | ||
45 | |||
46 | <td class="action-cell"> | ||
47 | <my-action-dropdown i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown> | ||
48 | </td> | ||
49 | </tr> | ||
50 | </ng-template> | ||
51 | |||
52 | <ng-template pTemplate="rowexpansion" let-videoAbuse> | ||
53 | <tr class="moderation-comment"> | ||
54 | <td colspan="7"> | ||
55 | <span i18n class="moderation-comment-label">Moderation comment:</span> | ||
56 | {{ videoAbuse.moderationComment }} | ||
57 | </td> | ||
58 | </tr> | ||
59 | </ng-template> | ||
60 | </p-table> | ||
61 | |||
62 | <my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal> \ No newline at end of file | ||