aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-27 08:51:40 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-27 08:51:40 +0200
commitd6e32a2e91c090ed342eaf0709caac2630a67ff3 (patch)
treea461a7cedeb87a992f2a6f476fff78e346f00b5d /client/src/app/videos/+video-watch
parentc2962505115563ad1510e8116f3b362887cac71f (diff)
downloadPeerTube-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-watch')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.html2
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts5
2 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html
index 6e502aae2..4b594e7ed 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.html
+++ b/client/src/app/videos/+video-watch/video-watch.component.html
@@ -29,7 +29,7 @@
29 <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div> 29 <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div>
30</div> 30</div>
31 31
32<!-- Video informations --> 32<!-- Video information -->
33<div *ngIf="video !== null" id="video-info"> 33<div *ngIf="video !== null" id="video-info">
34 <div class="row video-name-views"> 34 <div class="row video-name-views">
35 <div class="col-xs-8 col-md-8 video-name"> 35 <div class="col-xs-8 col-md-8 video-name">
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 2e1adb043..199666bdc 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -218,7 +218,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
218 218
219 let observable 219 let observable
220 if (this.video.isVideoNSFWForUser(this.authService.getUser())) { 220 if (this.video.isVideoNSFWForUser(this.authService.getUser())) {
221 observable = this.confirmService.confirm('This video is not safe for work. Are you sure you want to watch it?', 'NSFW') 221 observable = this.confirmService.confirm(
222 'This video contains mature or explicit content. Are you sure you want to watch it?',
223 'Mature or explicit content'
224 )
222 } else { 225 } else {
223 observable = Observable.of(true) 226 observable = Observable.of(true)
224 } 227 }