]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html
Improving select displays, focus box-shadows for paginators, instructions for index url
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-abuse-list / video-abuse-list.component.html
CommitLineData
ab998f7b
C
1<p-table
2 [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
efc9e845 3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
2bc9bd08
RK
4 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
5 currentPageReportTemplate="Showing {first} to {last} of {totalRecords} reports"
f595d394 6>
ab998f7b 7 <ng-template pTemplate="header">
2bc9bd08
RK
8 <tr> <!-- header -->
9 <th style="width: 40px;"></th>
b1d40cff 10 <th i18n>Reporter</th>
2bc9bd08 11 <th style="width: 200px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
b1d40cff 12 <th i18n>Video</th>
f0d4e7eb 13 <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
af5767ff 14 <th style="width: 120px;"></th>
ab998f7b
C
15 </tr>
16 </ng-template>
17
efc9e845 18 <ng-template pTemplate="body" let-expanded="expanded" let-videoAbuse>
ab998f7b 19 <tr>
2bc9bd08
RK
20 <td class="c-hand" [pRowToggler]="videoAbuse" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
21 <span class="expander">
efc9e845
C
22 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
23 </span>
24 </td>
25
19a3b914 26 <td>
b1d40cff 27 <a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer">
19a3b914
C
28 {{ createByString(videoAbuse.reporterAccount) }}
29 </a>
30 </td>
efc9e845 31
ab998f7b 32 <td>{{ videoAbuse.createdAt }}</td>
efc9e845 33
ab998f7b 34 <td>
2bc9bd08 35 <a [href]="getVideoUrl(videoAbuse)" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer">
19a3b914
C
36 {{ videoAbuse.video.name }}
37 </a>
ab998f7b 38 </td>
efc9e845 39
f0d4e7eb
C
40 <td>
41 <span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span>
42 <span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span>
43 </td>
44
efc9e845 45 <td class="action-cell">
4707f410 46 <my-action-dropdown placement="bottom-right" i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown>
efc9e845
C
47 </td>
48 </tr>
49 </ng-template>
50
51 <ng-template pTemplate="rowexpansion" let-videoAbuse>
83b5fe9c
FA
52 <tr>
53 <td class="moderation-expanded" colspan="6">
54 <div>
55 <span i18n class="moderation-expanded-label">Reason:</span>
41d71344 56 <span class="moderation-expanded-text" [innerHTML]="videoAbuse.reasonHtml"></span>
83b5fe9c
FA
57 </div>
58 <div *ngIf="videoAbuse.moderationComment">
59 <span i18n class="moderation-expanded-label">Moderation comment:</span>
41d71344 60 <span class="moderation-expanded-text" [innerHTML]="videoAbuse.moderationCommentHtml"></span>
83b5fe9c
FA
61 </div>
62 </td>
63 </tr>
ab998f7b
C
64 </ng-template>
65</p-table>
efc9e845 66
4707f410 67<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>