From 03891b66b655a972f75a66a6764dc180059dc435 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 28 Apr 2019 12:07:19 -0500 Subject: [PATCH] Show view count for related videos --- src/invidious/views/watch.ecr | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index fb5186c5..003d2396 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -184,9 +184,17 @@ <% end %>

<%= rv["title"] %>

-

- <%= rv["author"] %> -

+
+
+ <%= rv["author"] %> +
+ +
+ <% if views = rv["short_view_count_text"]?.try &.delete(", views") %> + <%= translate(locale, "`x` views", views) %> + <% end %> +
+
<% end %> <% end %>