]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html
Increase abuse length to 3000
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-blacklist-list / video-blacklist-list.component.html
1 <p-table
2 [value]="blacklist" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
4 >
5 <ng-template pTemplate="header">
6 <tr>
7 <th style="width: 40px"></th>
8 <th i18n pSortableColumn="name">Video name <p-sortIcon field="name"></p-sortIcon></th>
9 <th i18n>Sensitive</th>
10 <th i18n>Unfederated</th>
11 <th i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
12 <th style="width: 120px;"></th>
13 </tr>
14 </ng-template>
15
16 <ng-template pTemplate="body" let-videoBlacklist let-expanded="expanded">
17 <tr>
18 <td>
19 <span *ngIf="videoBlacklist.reason" class="expander" [pRowToggler]="videoBlacklist">
20 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
21 </span>
22 </td>
23
24 <td>
25 <a [href]="getVideoUrl(videoBlacklist)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
26 {{ videoBlacklist.video.name }}
27 </a>
28 </td>
29
30 <td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
31 <td>{{ booleanToText(videoBlacklist.unfederated) }}</td>
32 <td>{{ videoBlacklist.createdAt }}</td>
33
34 <td class="action-cell">
35 <my-action-dropdown i18n-label placement="bottom-right" label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"></my-action-dropdown>
36 </td>
37 </tr>
38 </ng-template>
39
40 <ng-template pTemplate="rowexpansion" let-videoBlacklist>
41 <tr>
42 <td class="moderation-expanded" colspan="6">
43 <span i18n class="moderation-expanded-label">Blacklist reason:</span>
44 <span class="moderation-expanded-text" [innerHTML]="toHtml(videoBlacklist.reason)"></span>
45 </td>
46 </tr>
47 </ng-template>
48 </p-table>
49