summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-04-28 12:07:19 -0500
committerOmar Roth <omarroth@hotmail.com>2019-04-28 14:14:44 -0500
commit03891b66b655a972f75a66a6764dc180059dc435 (patch)
tree113e42d2b693bee13ce78531a110c64bd6f6687d
parent42dd6326d5dab5efcf0dd3bec4f96e3afde7b0a6 (diff)
downloadinvidious-03891b66b655a972f75a66a6764dc180059dc435.tar.gz
invidious-03891b66b655a972f75a66a6764dc180059dc435.tar.bz2
invidious-03891b66b655a972f75a66a6764dc180059dc435.zip
Show view count for related videos
-rw-r--r--src/invidious/views/watch.ecr14
1 files 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 @@
</div>
<% end %>
<p style="width:100%"><%= rv["title"] %></p>
- <p>
- <b style="width: 100%"><%= rv["author"] %></b>
- </p>
+ <h5 class="pure-g">
+ <div class="pure-u-14-24">
+ <b style="width:100%"><%= rv["author"] %></b>
+ </div>
+
+ <div class="pure-u-10-24" style="text-align:right">
+ <% if views = rv["short_view_count_text"]?.try &.delete(", views") %>
+ <b class="width:100%"><%= translate(locale, "`x` views", views) %></b>
+ <% end %>
+ </div>
+ </h5>
</a>
<% end %>
<% end %>