]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html
add aria-hidden to non-descriptive icons (#2844)
[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"
25a42e29 6 (onPage)="onPage($event)" [expandedRowKeys]="expandedRows"
ab998f7b 7>
e0a92917
RK
8 <ng-template pTemplate="caption">
9 <div class="caption">
25a42e29 10 <div class="ml-auto has-feedback has-clear">
e0a92917
RK
11 <input
12 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
13 (keyup)="onSearch($event)"
14 >
25a42e29
RK
15 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
16 <span class="sr-only" i18n>Clear filters</span>
e0a92917
RK
17 </div>
18 </div>
19 </ng-template>
20
ab998f7b
C
21 <ng-template pTemplate="header">
22 <tr>
26b7305a 23 <th style="width: 40px"></th>
2bc9bd08 24 <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th>
aeb1bed9 25 <th style="width: 100px;" i18n>Sensitive</th>
2bc9bd08 26 <th style="width: 120px;" i18n>Unfederated</th>
df4c603d 27 <th style="width: 150px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
572bf73b 28 <th style="width: 150px;"></th>
ab998f7b
C
29 </tr>
30 </ng-template>
31
26b7305a 32 <ng-template pTemplate="body" let-videoBlacklist let-expanded="expanded">
ab998f7b 33 <tr>
2bc9bd08
RK
34 <td *ngIf="!videoBlacklist.reason"></td>
35 <td *ngIf="videoBlacklist.reason" class="expand-cell c-hand" [pRowToggler]="videoBlacklist" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
36 <span class="expander">
26b7305a
C
37 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
38 </span>
39 </td>
40
191764f3 41 <td>
aeb1bed9
RK
42 <a [href]="getVideoUrl(videoBlacklist)" class="video-table-video-link" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer">
43 <div class="video-table-video">
44 <div class="video-table-video-image">
45 <img [src]="videoBlacklist.video.thumbnailPath">
46 </div>
47 <div class="video-table-video-text">
48 <div>
49 {{ videoBlacklist.video.name }}
e0a92917 50 <span i18n-title title="Video was blacklisted" class="glyphicon glyphicon-ban-circle"></span>
aeb1bed9
RK
51 </div>
52 <div class="text-muted">by {{ videoBlacklist.video.channel?.displayName }} on {{ videoBlacklist.video.channel?.host }} </div>
53 </div>
54 </div>
191764f3
C
55 </a>
56 </td>
57
5fd4ca00
RK
58 <ng-container *ngIf="videoBlacklist.reason">
59 <td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
60 <td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.unfederated) }}</td>
7f979fd8 61 <td class="c-hand" [pRowToggler]="videoBlacklist">{{ videoBlacklist.createdAt | date: 'short' }}</td>
5fd4ca00
RK
62 </ng-container>
63 <ng-container *ngIf="!videoBlacklist.reason">
64 <td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
65 <td>{{ booleanToText(videoBlacklist.unfederated) }}</td>
7f979fd8 66 <td>{{ videoBlacklist.createdAt | date: 'short' }}</td>
5fd4ca00 67 </ng-container>
26b7305a 68
ab998f7b 69 <td class="action-cell">
e0a92917
RK
70 <my-action-dropdown
71 [ngClass]="{ 'show': expanded }" placement="bottom-right" container="body"
72 i18n-label label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"
73 ></my-action-dropdown>
26b7305a
C
74 </td>
75 </tr>
76 </ng-template>
77
78 <ng-template pTemplate="rowexpansion" let-videoBlacklist>
83b5fe9c 79 <tr>
d6af8146 80 <td class="expand-cell" colspan="6">
e0a92917
RK
81 <div class="d-flex moderation-expanded">
82 <span class="col-2 moderation-expanded-label" i18n>Blacklist reason:</span>
83 <span class="col-9 moderation-expanded-text" [innerHTML]="videoBlacklist.reasonHtml"></span>
84 </div>
ab998f7b
C
85 </td>
86 </tr>
87 </ng-template>
d3840613
RK
88
89 <ng-template pTemplate="emptymessage">
90 <tr>
91 <td colspan="6">
92 <div class="empty-table-message">
93 <ng-container *ngIf="search" i18n>No blacklisted video found matching current filters.</ng-container>
94 <ng-container *ngIf="!search" i18n>No blacklisted video found.</ng-container>
95 </div>
96 </td>
97 </tr>
98 </ng-template>
ab998f7b
C
99</p-table>
100