mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add video_context buttons in suggested video on watch view
This commit is contained in:
parent
997d936e9c
commit
d29d91f6b5
1 changed files with 6 additions and 1 deletions
|
@ -320,7 +320,12 @@ we're going to need to do it here in order to allow for translations.
|
|||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-10-24" style="text-align:right">
|
||||
<div class="pure-u-4-24">
|
||||
<% endpoint_params = "?v=#{rv["id"]}" %>
|
||||
<%= rendered "components/video-context-buttons" %>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-6-24" style="text-align:right">
|
||||
<b class="width:100%"><%=
|
||||
views = rv["view_count"]?.try &.to_i?
|
||||
views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue