From d29d91f6b5433f3f77dadc97a94cdc1fb67b1305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9ry=20Mathieu=20=28Mathius=29?= Date: Wed, 23 Feb 2022 14:27:42 +0100 Subject: [PATCH] Add video_context buttons in suggested video on watch view --- src/invidious/views/watch.ecr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 2e0aee99..286a3be4 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -320,7 +320,12 @@ we're going to need to do it here in order to allow for translations. <% end %> -
+
+ <% endpoint_params = "?v=#{rv["id"]}" %> + <%= rendered "components/video-context-buttons" %> +
+ +
<%= views = rv["view_count"]?.try &.to_i? views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }