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