a39e7639e1d031165e0b0e26b38b862b6dafe600
[oweals/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   [showCurrentPageReport]="true" i18n-currentPageReportTemplate
5   currentPageReportTemplate="Showing {first} to {last} of {totalRecords} blacklisted videos"
6 >
7   <ng-template pTemplate="header">
8     <tr>
9       <th style="width: 40px"></th>
10       <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th>
11       <th style="width: 120px;" i18n>Sensitive</th>
12       <th style="width: 120px;" i18n>Unfederated</th>
13       <th style="width: 200px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
14       <th style="width: 120px;"></th>
15     </tr>
16   </ng-template>
17
18   <ng-template pTemplate="body" let-videoBlacklist let-expanded="expanded">
19     <tr>
20       <td *ngIf="!videoBlacklist.reason"></td>
21       <td *ngIf="videoBlacklist.reason" class="expand-cell c-hand" [pRowToggler]="videoBlacklist" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
22         <span class="expander">
23           <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
24         </span>
25       </td>
26
27       <td>
28         <a [href]="getVideoUrl(videoBlacklist)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
29           {{ videoBlacklist.video.name }}
30         </a>
31       </td>
32
33       <td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
34       <td>{{ booleanToText(videoBlacklist.unfederated) }}</td>
35       <td>{{ videoBlacklist.createdAt }}</td>
36
37       <td class="action-cell">
38         <my-action-dropdown i18n-label  placement="bottom-right" label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"></my-action-dropdown>
39       </td>
40     </tr>
41   </ng-template>
42
43   <ng-template pTemplate="rowexpansion" let-videoBlacklist>
44     <tr>
45       <td class="moderation-expanded" colspan="6">
46         <span i18n class="moderation-expanded-label">Blacklist reason:</span>
47         <span class="moderation-expanded-text" [innerHTML]="videoBlacklist.reasonHtml"></span>
48       </td>
49     </tr>
50   </ng-template>
51 </p-table>
52