+ {{ video.likes }}
+ {{ video.dislikes }}
diff --git a/client/src/app/videos/+video-watch/video-watch.component.scss b/client/src/app/videos/+video-watch/video-watch.component.scss
index 80d01b7ce..86b44d5da 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.scss
+++ b/client/src/app/videos/+video-watch/video-watch.component.scss
@@ -239,9 +239,20 @@ $player-factor: 1.7; // 16/9
display: none;
}
+ .action-button-like,
+ .action-button-dislike {
+ .count {
+ margin-right: 5px;
+ }
+ }
+
&.action-button-like.activated {
background-color: $green;
+ .count {
+ color: #fff;
+ }
+
my-global-icon {
@include apply-svg-color(#fff);
}
@@ -250,6 +261,10 @@ $player-factor: 1.7; // 16/9
&.action-button-dislike.activated {
background-color: $red;
+ .count {
+ color: #fff;
+ }
+
my-global-icon {
@include apply-svg-color(#fff);
}
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 0007331f8..aacd697cf 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -166,6 +166,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
else this.setRating('dislike')
}
+ getRatePopoverText () {
+ if (this.isUserLoggedIn()) return undefined
+
+ return this.i18n('You need to be connected to rate this content.')
+ }
+
showMoreDescription () {
if (this.completeVideoDescription === undefined) {
return this.loadCompleteDescription()