]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-block-list/video-block-list.component.html
Migrate to bootstrap 5
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-block-list / video-block-list.component.html
CommitLineData
ed5bb517
K
1<h1>
2 <my-global-icon iconName="cross" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>Video blocks</ng-container>
4</h1>
5
5baee5fc 6<p-table
2e46eb97
C
7 [value]="blocklist" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
8 [sortField]="sort.field" [sortOrder]="sort.order" dataKey="id"
9 [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false"
5baee5fc
RK
10 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
11 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} blocked videos"
e6492b2d 12 [expandedRowKeys]="expandedRows"
5baee5fc
RK
13>
14 <ng-template pTemplate="caption">
15 <div class="caption">
4c8749cb 16 <div class="ms-auto">
2e46eb97 17 <my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
5baee5fc
RK
18 </div>
19 </div>
20 </ng-template>
21
22 <ng-template pTemplate="header">
23 <tr>
9df52d66 24 <th style="width: 40px;"></th>
7706b370 25 <th style="width: 150px;"></th>
5baee5fc
RK
26 <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th>
27 <th style="width: 100px;" i18n>Sensitive</th>
28 <th style="width: 120px;" i18n>Unfederated</th>
29 <th style="width: 150px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
5baee5fc
RK
30 </tr>
31 </ng-template>
32
33 <ng-template pTemplate="body" let-videoBlock let-expanded="expanded">
34 <tr>
35 <td *ngIf="!videoBlock.reason"></td>
e4611b54 36 <td class="expand-cell" *ngIf="videoBlock.reason" [pRowToggler]="videoBlock">
33f6dce1 37 <my-table-expander-icon [expanded]="expanded"></my-table-expander-icon>
5baee5fc
RK
38 </td>
39
7706b370
C
40 <td class="action-cell">
41 <my-action-dropdown
d94b8ecf 42 [ngClass]="{ 'show': expanded }" placement="bottom-right auto" container="body"
7706b370
C
43 i18n-label label="Actions" [actions]="videoBlocklistActions" [entry]="videoBlock"
44 ></my-action-dropdown>
45 </td>
46
5baee5fc 47 <td>
33f6dce1
C
48 <my-video-cell [video]="videoBlock.video">
49 <span name>
50 <my-global-icon *ngIf="videoBlock.type === 2" i18n-title title="The video was blocked due to automatic blocking of new videos" iconName="robot"></my-global-icon>
51 </span>
52 </my-video-cell>
5baee5fc
RK
53 </td>
54
c195975c 55 <td>
4c8749cb 56 <span *ngIf="videoBlock.video.nsfw" class="pt-badge badge-red" i18n>NSFW</span>
c195975c
C
57 </td>
58
59 <td>
4c8749cb 60 <span *ngIf="videoBlock.unfederated" class="pt-badge badge-blue" i18n>Unfederated</span>
c195975c
C
61 </td>
62
63 <td>
64 {{ videoBlock.createdAt | date: 'short' }}
65 </td>
5baee5fc
RK
66 </tr>
67 </ng-template>
68
69 <ng-template pTemplate="rowexpansion" let-videoBlock>
70 <tr>
71 <td class="expand-cell" colspan="6">
72 <div class="d-flex moderation-expanded">
71ab65d0 73
d94b8ecf
C
74 <div class="left">
75 <span class="moderation-expanded-label" i18n>Block reason:</span>
76 <span class="moderation-expanded-text" [innerHTML]="videoBlock.reasonHtml"></span>
71ab65d0
RK
77 </div>
78
d94b8ecf 79 <div class="right">
33f6dce1 80 <my-embed [video]="videoBlock.video"></my-embed>
71ab65d0
RK
81 </div>
82
5baee5fc
RK
83 </div>
84 </td>
85 </tr>
86 </ng-template>
87
88 <ng-template pTemplate="emptymessage">
89 <tr>
90 <td colspan="6">
22839330 91 <div class="no-results">
5baee5fc
RK
92 <ng-container *ngIf="search" i18n>No blocked video found matching current filters.</ng-container>
93 <ng-container *ngIf="!search" i18n>No blocked video found.</ng-container>
94 </div>
95 </td>
96 </tr>
97 </ng-template>
98</p-table>
99