From 05a9feaa48cea560abd9561434a3479ab1021643 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 26 Feb 2017 19:59:51 +0100 Subject: Client: add views information and sort --- .../videos/video-watch/video-watch.component.html | 23 ++++++++++++++-------- .../videos/video-watch/video-watch.component.scss | 8 ++++++-- .../videos/video-watch/video-watch.component.ts | 3 ++- 3 files changed, 23 insertions(+), 11 deletions(-) (limited to 'client/src/app/videos/video-watch') 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 8cee9959d..24d741ff9 100644 --- a/client/src/app/videos/video-watch/video-watch.component.html +++ b/client/src/app/videos/video-watch/video-watch.component.html @@ -57,17 +57,20 @@ Share - - -
+
+
-
-
+
+ + +
+ {{ video.views }} views +
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 794412707..0b8af52ce 100644 --- a/client/src/app/videos/video-watch/video-watch.component.scss +++ b/client/src/app/videos/video-watch/video-watch.component.scss @@ -47,7 +47,7 @@ top: 2px; } - #magnet-uri, #share, #more { + #share, #more { font-weight: bold; opacity: 0.85; } @@ -71,12 +71,16 @@ } } - #video-tags { + #video-tags-views { margin-top: 10px; a { margin-right: 5px; } + + #video-views { + font-weight: bold; + } } #video-description { 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 9ac9342b7..d1abc81bc 100644 --- a/client/src/app/videos/video-watch/video-watch.component.ts +++ b/client/src/app/videos/video-watch/video-watch.component.ts @@ -145,7 +145,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.videoShareModal.show(); } - showMagnetUriModal() { + showMagnetUriModal(event: Event) { + event.preventDefault(); this.videoMagnetModal.show(); } -- cgit v1.2.3