]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html
Add ability to delete and update abuse on client
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / video-abuses / video-abuse-list / video-abuse-list.component.html
CommitLineData
f595d394 1<div class="admin-sub-header">
b1d40cff 2 <div i18n class="form-sub-title">Video abuses list</div>
897ec54d 3</div>
f595d394 4
ab998f7b
C
5<p-table
6 [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
efc9e845 7 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
f595d394 8>
ab998f7b
C
9 <ng-template pTemplate="header">
10 <tr>
efc9e845
C
11 <th style="width: 40px"></th>
12 <th i18n style="width: 80px;">State</th>
b1d40cff
C
13 <th i18n>Reason</th>
14 <th i18n>Reporter</th>
15 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
16 <th i18n>Video</th>
efc9e845 17 <th style="width: 50px;"></th>
ab998f7b
C
18 </tr>
19 </ng-template>
20
efc9e845 21 <ng-template pTemplate="body" let-expanded="expanded" let-videoAbuse>
ab998f7b 22 <tr>
efc9e845
C
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
ab998f7b 34 <td>{{ videoAbuse.reason }}</td>
efc9e845 35
19a3b914 36 <td>
b1d40cff 37 <a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer">
19a3b914
C
38 {{ createByString(videoAbuse.reporterAccount) }}
39 </a>
40 </td>
efc9e845 41
ab998f7b 42 <td>{{ videoAbuse.createdAt }}</td>
efc9e845 43
ab998f7b 44 <td>
b1d40cff 45 <a [href]="videoAbuse.video.url" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
19a3b914
C
46 {{ videoAbuse.video.name }}
47 </a>
ab998f7b 48 </td>
efc9e845
C
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>
ab998f7b
C
62 </tr>
63 </ng-template>
64</p-table>
efc9e845
C
65
66<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>