From 992f498e312efcde46f818ba719b50f1f958272f Mon Sep 17 00:00:00 2001 From: Tanguy BERNARD Date: Fri, 27 Nov 2020 14:27:14 +0100 Subject: add title attribute for exact view counters (#3365) --- client/src/app/+videos/+video-watch/video-watch.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts') 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 66af9709d..bc047489e 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts @@ -219,6 +219,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy { return $localize`You need to be logged in to rate this video.` } + getExactNumberOfViews () { + return (this.video.views >= 1000) + ? `${this.video.views} ${this.video.isLive ? $localize`viewers` : $localize`views`}` + : '' + } + showMoreDescription () { if (this.completeVideoDescription === undefined) { return this.loadCompleteDescription() -- cgit v1.2.3