]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html
Switching to a named filters/single input on video-abuse
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-blacklist-list / video-blacklist-list.component.html
CommitLineData
ab998f7b 1<p-table
b8cf27c0 2 [value]="blacklist" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
26b7305a 3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
2bc9bd08 4 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
45c14ae1 5 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} blacklisted videos"
ab998f7b 6>
e0a92917
RK
7 <ng-template pTemplate="caption">
8 <div class="caption">
9 <div class="ml-auto">
10 <input
11 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
12 (keyup)="onSearch($event)"
13 >
14 </div>
15 </div>
16 </ng-template>
17
ab998f7b
C
18 <ng-template pTemplate="header">
19 <tr>
26b7305a 20 <th style="width: 40px"></th>
2bc9bd08 21 <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th>
aeb1bed9 22 <th style="width: 100px;" i18n>Sensitive</th>
2bc9bd08 23 <th style="width: 120px;" i18n>Unfederated</th>
9b4241e3 24 <th style="width: 190px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
af5767ff 25 <th style="width: 120px;"></th>
ab998f7b
C
26 </tr>
27 </ng-template>
28
26b7305a 29 <ng-template pTemplate="body" let-videoBlacklist let-expanded="expanded">
ab998f7b 30 <tr>
2bc9bd08
RK
31 <td *ngIf="!videoBlacklist.reason"></td>
32 <td *ngIf="videoBlacklist.reason" class="expand-cell c-hand" [pRowToggler]="videoBlacklist" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
33 <span class="expander">
26b7305a
C
34 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
35 </span>
36 </td>
37
191764f3 38 <td>
aeb1bed9
RK
39 <a [href]="getVideoUrl(videoBlacklist)" class="video-table-video-link" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer">
40 <div class="video-table-video">
41 <div class="video-table-video-image">
42 <img [src]="videoBlacklist.video.thumbnailPath">
43 </div>
44 <div class="video-table-video-text">
45 <div>
46 {{ videoBlacklist.video.name }}
e0a92917 47 <span i18n-title title="Video was blacklisted" class="glyphicon glyphicon-ban-circle"></span>
aeb1bed9
RK
48 </div>
49 <div class="text-muted">by {{ videoBlacklist.video.channel?.displayName }} on {{ videoBlacklist.video.channel?.host }} </div>
50 </div>
51 </div>
191764f3
C
52 </a>
53 </td>
54
5fd4ca00
RK
55 <ng-container *ngIf="videoBlacklist.reason">
56 <td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
57 <td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.unfederated) }}</td>
58 <td class="c-hand" [pRowToggler]="videoBlacklist">{{ videoBlacklist.createdAt }}</td>
59 </ng-container>
60 <ng-container *ngIf="!videoBlacklist.reason">
61 <td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
62 <td>{{ booleanToText(videoBlacklist.unfederated) }}</td>
63 <td>{{ videoBlacklist.createdAt }}</td>
64 </ng-container>
26b7305a 65
ab998f7b 66 <td class="action-cell">
e0a92917
RK
67 <my-action-dropdown
68 [ngClass]="{ 'show': expanded }" placement="bottom-right" container="body"
69 i18n-label label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"
70 ></my-action-dropdown>
26b7305a
C
71 </td>
72 </tr>
73 </ng-template>
74
75 <ng-template pTemplate="rowexpansion" let-videoBlacklist>
83b5fe9c 76 <tr>
d6af8146 77 <td class="expand-cell" colspan="6">
e0a92917
RK
78 <div class="d-flex moderation-expanded">
79 <span class="col-2 moderation-expanded-label" i18n>Blacklist reason:</span>
80 <span class="col-9 moderation-expanded-text" [innerHTML]="videoBlacklist.reasonHtml"></span>
81 </div>
ab998f7b
C
82 </td>
83 </tr>
84 </ng-template>
d3840613
RK
85
86 <ng-template pTemplate="emptymessage">
87 <tr>
88 <td colspan="6">
89 <div class="empty-table-message">
90 <ng-container *ngIf="search" i18n>No blacklisted video found matching current filters.</ng-container>
91 <ng-container *ngIf="!search" i18n>No blacklisted video found.</ng-container>
92 </div>
93 </td>
94 </tr>
95 </ng-template>
ab998f7b
C
96</p-table>
97