]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html
Fix my-video-imports display when a video gets deleted
[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>
b1d40cff
C
8 <th i18n>Reporter</th>
9 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
10 <th i18n>Video</th>
f0d4e7eb 11 <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
af5767ff 12 <th style="width: 120px;"></th>
ab998f7b
C
13 </tr>
14 </ng-template>
15
efc9e845 16 <ng-template pTemplate="body" let-expanded="expanded" let-videoAbuse>
ab998f7b 17 <tr>
b1f3b635 18
566c125d 19 <td class="expand-cell">
b1f3b635 20 <span class="expander" i18n-ngbTooltip ngbTooltip="More information" [pRowToggler]="videoAbuse">
efc9e845
C
21 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
22 </span>
23 </td>
24
19a3b914 25 <td>
b1d40cff 26 <a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer">
19a3b914
C
27 {{ createByString(videoAbuse.reporterAccount) }}
28 </a>
29 </td>
efc9e845 30
ab998f7b 31 <td>{{ videoAbuse.createdAt }}</td>
efc9e845 32
ab998f7b 33 <td>
191764f3 34 <a [href]="getVideoUrl(videoAbuse)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
19a3b914
C
35 {{ videoAbuse.video.name }}
36 </a>
ab998f7b 37 </td>
efc9e845 38
f0d4e7eb
C
39 <td>
40 <span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span>
41 <span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span>
42 </td>
43
efc9e845 44 <td class="action-cell">
4707f410 45 <my-action-dropdown placement="bottom-right" i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown>
efc9e845
C
46 </td>
47 </tr>
48 </ng-template>
49
50 <ng-template pTemplate="rowexpansion" let-videoAbuse>
83b5fe9c
FA
51 <tr>
52 <td class="moderation-expanded" colspan="6">
53 <div>
54 <span i18n class="moderation-expanded-label">Reason:</span>
41d71344 55 <span class="moderation-expanded-text" [innerHTML]="videoAbuse.reasonHtml"></span>
83b5fe9c
FA
56 </div>
57 <div *ngIf="videoAbuse.moderationComment">
58 <span i18n class="moderation-expanded-label">Moderation comment:</span>
41d71344 59 <span class="moderation-expanded-text" [innerHTML]="videoAbuse.moderationCommentHtml"></span>
83b5fe9c
FA
60 </div>
61 </td>
62 </tr>
ab998f7b
C
63 </ng-template>
64</p-table>
efc9e845 65
4707f410 66<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>