]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html
Regroup abuse and blacklisted videos inside "moderation"
[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"
f595d394 4>
ab998f7b
C
5 <ng-template pTemplate="header">
6 <tr>
efc9e845 7 <th style="width: 40px"></th>
26b7305a 8 <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
b1d40cff
C
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>
efc9e845 13 <th style="width: 50px;"></th>
ab998f7b
C
14 </tr>
15 </ng-template>
16
efc9e845 17 <ng-template pTemplate="body" let-expanded="expanded" let-videoAbuse>
ab998f7b 18 <tr>
efc9e845
C
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
ab998f7b 30 <td>{{ videoAbuse.reason }}</td>
efc9e845 31
19a3b914 32 <td>
b1d40cff 33 <a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer">
19a3b914
C
34 {{ createByString(videoAbuse.reporterAccount) }}
35 </a>
36 </td>
efc9e845 37
ab998f7b 38 <td>{{ videoAbuse.createdAt }}</td>
efc9e845 39
ab998f7b 40 <td>
191764f3 41 <a [href]="getVideoUrl(videoAbuse)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
19a3b914
C
42 {{ videoAbuse.video.name }}
43 </a>
ab998f7b 44 </td>
efc9e845
C
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>
ab998f7b
C
58 </tr>
59 </ng-template>
60</p-table>
efc9e845
C
61
62<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>