diff options
Diffstat (limited to 'client/src/app/+admin/moderation/video-blacklist-list')
2 files changed, 15 insertions, 4 deletions
diff --git a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html index c5c0fdbbf..90a786ad0 100644 --- a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html +++ b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html | |||
@@ -8,7 +8,7 @@ | |||
8 | <tr> | 8 | <tr> |
9 | <th style="width: 40px"></th> | 9 | <th style="width: 40px"></th> |
10 | <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th> | 10 | <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th> |
11 | <th style="width: 120px;" i18n>Sensitive</th> | 11 | <th style="width: 100px;" i18n>Sensitive</th> |
12 | <th style="width: 120px;" i18n>Unfederated</th> | 12 | <th style="width: 120px;" i18n>Unfederated</th> |
13 | <th style="width: 190px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th> | 13 | <th style="width: 190px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th> |
14 | <th style="width: 120px;"></th> | 14 | <th style="width: 120px;"></th> |
@@ -25,8 +25,19 @@ | |||
25 | </td> | 25 | </td> |
26 | 26 | ||
27 | <td> | 27 | <td> |
28 | <a [href]="getVideoUrl(videoBlacklist)" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer"> | 28 | <a [href]="getVideoUrl(videoBlacklist)" class="video-table-video-link" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer"> |
29 | {{ videoBlacklist.video.name }} | 29 | <div class="video-table-video"> |
30 | <div class="video-table-video-image"> | ||
31 | <img [src]="videoBlacklist.video.thumbnailPath"> | ||
32 | </div> | ||
33 | <div class="video-table-video-text"> | ||
34 | <div> | ||
35 | {{ videoBlacklist.video.name }} | ||
36 | <span class="glyphicon glyphicon-new-window"></span> | ||
37 | </div> | ||
38 | <div class="text-muted">by {{ videoBlacklist.video.channel?.displayName }} on {{ videoBlacklist.video.channel?.host }} </div> | ||
39 | </div> | ||
40 | </div> | ||
30 | </a> | 41 | </a> |
31 | </td> | 42 | </td> |
32 | 43 | ||
diff --git a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts index 4e9965bee..c38d30865 100644 --- a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts +++ b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts | |||
@@ -38,7 +38,7 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit { | |||
38 | ngOnInit () { | 38 | ngOnInit () { |
39 | this.serverService.getConfig() | 39 | this.serverService.getConfig() |
40 | .subscribe(config => { | 40 | .subscribe(config => { |
41 | // don't filter if auto-blacklist not enabled as this will be only list | 41 | // don't filter if auto-blacklist not enabled as this will be the only list |
42 | if (config.autoBlacklist.videos.ofUsers.enabled) { | 42 | if (config.autoBlacklist.videos.ofUsers.enabled) { |
43 | this.listBlacklistTypeFilter = VideoBlacklistType.MANUAL | 43 | this.listBlacklistTypeFilter = VideoBlacklistType.MANUAL |
44 | } | 44 | } |