mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-20 03:28:29 +00:00
Add video_context buttons in suggested video on watch view
This commit is contained in:
parent
997d936e9c
commit
d29d91f6b5
@ -320,7 +320,12 @@ we're going to need to do it here in order to allow for translations.
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</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%"><%=
|
<b class="width:100%"><%=
|
||||||
views = rv["view_count"]?.try &.to_i?
|
views = rv["view_count"]?.try &.to_i?
|
||||||
views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }
|
views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }
|
||||||
|
Loading…
Reference in New Issue
Block a user