From be42dd0a4b0a5ffd5c2e94e7a6ad8d854da65f27 Mon Sep 17 00:00:00 2001
From: broquemonsieur
<%= translate_count(locale, "generic_videos_count", item.video_count, NumberFormatting::Separator) %>
-<%= HTML.escape(item.title) %>
- - -<%= HTML.escape(item.author) %><% if !item.is_a?(InvidiousCompilation) && !item.is_a?(InvidiousPlaylist) && !item.author_verified.nil? && item.author_verified %> <% end %>
- - <% when CompilationVideo %> -<%= translate(locale, "LIVE") %>
- <% elsif item.length_seconds != 0 %> -<%= recode_length_seconds(item.length_seconds) %>
- <% end %> - - <% if item_watched %> - - - <% end %> -<%= HTML.escape(item.title) %>
- - -<%= translate(locale, "Premieres in `x`", recode_date((item.premiere_timestamp.as(Time) - Time.utc).ago, locale)) %>
- <% elsif Time.utc - item.published > 1.minute %> -<%= translate(locale, "Shared `x` ago", recode_date(item.published, locale)) %>
- <% end %> -<%= translate_count(locale, "generic_views_count", item.views || 0, NumberFormatting::Short) %>
-<%= translate_count(locale, "generic_videos_count", item.video_count, NumberFormatting::Separator) %>
+<%= HTML.escape(item.title) %>
+ elsif item.is_a?(CompilationVideo) + <% when CompilationVideo %> +<%= HTML.escape(item.author) %><% if !item.is_a?(InvidiousCompilation) && !item.is_a?(InvidiousPlaylist) && !item.author_verified.nil? && item.author_verified %> <% end %>
+ else link_url = "/watch?v=#{item.id}" endpoint_params = "?v=#{item.id}" @@ -223,12 +172,12 @@ data-onclick="add_playlist_item" data-id="<%= item.id %>" data-plid="<%= plid_form %>"> <% elsif compid_form = env.get? "add_compilation_items" %> - + <%- elsif item.is_a?(PlaylistVideo) && (plid_form = env.get?("remove_playlist_items")) -%> <%- form_parameters = "action_remove_video=1&set_video_id=#{item.index}&playlist_id=#{plid_form}&referer=#{env.get("current_page")}" -%>