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