diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-16 17:18:55 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | 9b4241e33bf46c4f0468565ce41ca7f810b2dbfa (patch) | |
tree | 729182ea775aa9103d5b1101236f6b65795f3f25 /client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html | |
parent | 68d19a0ace01cb7a3550da420d27663e2db1b98d (diff) | |
download | PeerTube-9b4241e33bf46c4f0468565ce41ca7f810b2dbfa.tar.gz PeerTube-9b4241e33bf46c4f0468565ce41ca7f810b2dbfa.tar.zst PeerTube-9b4241e33bf46c4f0468565ce41ca7f810b2dbfa.zip |
Increase rows per page, add reporter muting for abuse list
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 | 15 |
1 files changed, 8 insertions, 7 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 index 3d356dc7c..204cb209e 100644 --- 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 | |||
@@ -1,15 +1,15 @@ | |||
1 | <p-table | 1 | <p-table |
2 | [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | 2 | [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" |
3 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" | 3 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" [resizableColumns]="true" |
4 | [showCurrentPageReport]="true" i18n-currentPageReportTemplate | 4 | [showCurrentPageReport]="true" i18n-currentPageReportTemplate |
5 | currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} reports" | 5 | currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} reports" |
6 | > | 6 | > |
7 | <ng-template pTemplate="header"> | 7 | <ng-template pTemplate="header"> |
8 | <tr> <!-- header --> | 8 | <tr> <!-- header --> |
9 | <th style="width: 40px;"></th> | 9 | <th style="width: 40px;"></th> |
10 | <th i18n>Reporter</th> | 10 | <th style="width: 20%;" pResizableColumn i18n>Reporter</th> |
11 | <th style="width: 200px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | ||
12 | <th i18n>Video</th> | 11 | <th i18n>Video</th> |
12 | <th style="width:190px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | ||
13 | <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th> | 13 | <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th> |
14 | <th style="width: 120px;"></th> | 14 | <th style="width: 120px;"></th> |
15 | </tr> | 15 | </tr> |
@@ -40,14 +40,15 @@ | |||
40 | </a> | 40 | </a> |
41 | </td> | 41 | </td> |
42 | 42 | ||
43 | <td>{{ videoAbuse.createdAt }}</td> | ||
44 | |||
45 | <td> | 43 | <td> |
44 | <span *ngIf="videoAbuse.video.deleted" i18n-title title="Video was deleted" class="glyphicon glyphicon-trash"></span> | ||
46 | <a [href]="getVideoUrl(videoAbuse)" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer"> | 45 | <a [href]="getVideoUrl(videoAbuse)" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer"> |
47 | {{ videoAbuse.video.name }} | 46 | {{ videoAbuse.video.name }} |
48 | </a> | 47 | </a> |
49 | </td> | 48 | </td> |
50 | 49 | ||
50 | <td>{{ videoAbuse.createdAt }}</td> | ||
51 | |||
51 | <td class="c-hand video-abuse-states" [pRowToggler]="videoAbuse"> | 52 | <td class="c-hand video-abuse-states" [pRowToggler]="videoAbuse"> |
52 | <span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span> | 53 | <span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span> |
53 | <span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span> | 54 | <span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span> |
@@ -55,7 +56,7 @@ | |||
55 | </td> | 56 | </td> |
56 | 57 | ||
57 | <td class="action-cell"> | 58 | <td class="action-cell"> |
58 | <my-action-dropdown placement="bottom-right auto" i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown> | 59 | <my-action-dropdown placement="bottom-right auto" container="body" i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown> |
59 | </td> | 60 | </td> |
60 | </tr> | 61 | </tr> |
61 | </ng-template> | 62 | </ng-template> |