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