From 7d02c1827ad45423fff4e40f4e0ee7af5c15c6e7 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Tue, 21 Jan 2025 17:21:23 -0300 Subject: [PATCH] feat(views): Add icon for embed youtube video on thumbnails --- src/invidious/views/components/item.ecr | 3 +++ src/invidious/views/components/video-context-buttons.ecr | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index 6d227cfc..1640c236 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -103,12 +103,15 @@ if item.is_a?(PlaylistVideo) link_url = "/watch?v=#{item.id}&list=#{item.plid}&index=#{item.index}" endpoint_params = "?v=#{item.id}&list=#{item.plid}" + embed_id = item.id elsif item.is_a?(MixVideo) link_url = "/watch?v=#{item.id}&list=#{item.rdid}" endpoint_params = "?v=#{item.id}&list=#{item.rdid}" + embed_id = item.id else link_url = "/watch?v=#{item.id}" endpoint_params = "?v=#{item.id}" + embed_id = item.id end -%> diff --git a/src/invidious/views/components/video-context-buttons.ecr b/src/invidious/views/components/video-context-buttons.ecr index 22458a03..8e8fc2f5 100644 --- a/src/invidious/views/components/video-context-buttons.ecr +++ b/src/invidious/views/components/video-context-buttons.ecr @@ -1,5 +1,8 @@