diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-27 08:51:40 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-27 08:51:40 +0200 |
commit | d6e32a2e91c090ed342eaf0709caac2630a67ff3 (patch) | |
tree | a461a7cedeb87a992f2a6f476fff78e346f00b5d /client/src/app/videos/video-list/video-miniature.component.html | |
parent | c2962505115563ad1510e8116f3b362887cac71f (diff) | |
download | PeerTube-d6e32a2e91c090ed342eaf0709caac2630a67ff3.tar.gz PeerTube-d6e32a2e91c090ed342eaf0709caac2630a67ff3.tar.zst PeerTube-d6e32a2e91c090ed342eaf0709caac2630a67ff3.zip |
Replace NSFW with "mature or explicit content"
Blur their thumbnail and name
Diffstat (limited to 'client/src/app/videos/video-list/video-miniature.component.html')
-rw-r--r-- | client/src/app/videos/video-list/video-miniature.component.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/client/src/app/videos/video-list/video-miniature.component.html b/client/src/app/videos/video-list/video-miniature.component.html index 6525b67bf..abe87025f 100644 --- a/client/src/app/videos/video-list/video-miniature.component.html +++ b/client/src/app/videos/video-list/video-miniature.component.html | |||
@@ -3,10 +3,7 @@ | |||
3 | [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.description" | 3 | [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.description" |
4 | class="video-miniature-thumbnail" | 4 | class="video-miniature-thumbnail" |
5 | > | 5 | > |
6 | <img *ngIf="isVideoNSFWForThisUser() === false" [attr.src]="video.thumbnailUrl" alt="video thumbnail" /> | 6 | <img [attr.src]="video.thumbnailUrl" alt="video thumbnail" [ngClass]="{ 'blur-filter': isVideoNSFWForThisUser() }" /> |
7 | <div *ngIf="isVideoNSFWForThisUser()" class="thumbnail-nsfw"> | ||
8 | NSFW | ||
9 | </div> | ||
10 | 7 | ||
11 | <div class="video-miniature-thumbnail-overlay"> | 8 | <div class="video-miniature-thumbnail-overlay"> |
12 | <span class="video-miniature-thumbnail-overlay-views">{{ video.views }} views</span> | 9 | <span class="video-miniature-thumbnail-overlay-views">{{ video.views }} views</span> |
@@ -14,9 +11,14 @@ | |||
14 | </div> | 11 | </div> |
15 | </a> | 12 | </a> |
16 | 13 | ||
17 | <div class="video-miniature-informations"> | 14 | <div class="video-miniature-information"> |
18 | <span class="video-miniature-name"> | 15 | <span class="video-miniature-name"> |
19 | <a [routerLink]="['/videos/watch', video.uuid]" [attr.title]="getVideoName()" class="video-miniature-name">{{ getVideoName() }}</a> | 16 | <a |
17 | class="video-miniature-name" | ||
18 | [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoNSFWForThisUser() }" | ||
19 | > | ||
20 | {{ video.name }} | ||
21 | </a> | ||
20 | </span> | 22 | </span> |
21 | 23 | ||
22 | <div class="video-miniature-tags"> | 24 | <div class="video-miniature-tags"> |