Add video_context buttons in suggested video on watch view

This commit is contained in:
Féry Mathieu (Mathius) 2022-02-23 14:27:42 +01:00
parent 997d936e9c
commit d29d91f6b5
No known key found for this signature in database
GPG Key ID: 935858CF779FB2CE

View File

@ -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) }