<% case item when %> <% when SearchChannel %> <% if !env.get("preferences").as(Preferences).thin_mode %>
<% end %>

<%= item.author %>

<%= translate(locale, "`x` subscribers", number_with_separator(item.subscriber_count)) %>

<%= translate(locale, "`x` videos", number_with_separator(item.video_count)) %>

<%= item.description_html %>
<% when SearchPlaylist %> <% if item.id.starts_with? "RD" %> <% url = "/mix?list=#{item.id}&continuation=#{item.thumbnail_id}" %> <% else %> <% url = "/playlist?list=#{item.id}" %> <% end %> <% if !env.get("preferences").as(Preferences).thin_mode %>

<%= number_with_separator(item.video_count) %> videos

<% end %>

<%= item.title %>

<%= item.author %>

<% when MixVideo %> <% if !env.get("preferences").as(Preferences).thin_mode %>
<% if item.length_seconds != 0 %>

<%= recode_length_seconds(item.length_seconds) %>

<% end %>
<% end %>

<%= item.title %>

<%= item.author %>

<% when PlaylistVideo %> <% if !env.get("preferences").as(Preferences).thin_mode %>
<% if item.responds_to?(:live_now) && item.live_now %>

<%= translate(locale, "LIVE") %>

<% elsif item.length_seconds != 0 %>

<%= recode_length_seconds(item.length_seconds) %>

<% end %>
<% end %>

<%= item.title %>

<%= item.author %>

<% if item.responds_to?(:premiere_timestamp) && item.premiere_timestamp && item.premiere_timestamp.not_nil! > Time.utc %>
<%= 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)) %>
<% else %>
<% end %>
<%= item.responds_to?(:views) && item.views ? translate(locale, "`x` views", number_to_short_text(item.views || 0)) : "" %>
<% else %> <% if !env.get("preferences").as(Preferences).thin_mode %>
<% if env.get? "show_watched" %>
" method="post"> ">

<% end %> <% if item.responds_to?(:live_now) && item.live_now %>

<%= translate(locale, "LIVE") %>

<% elsif item.length_seconds != 0 %>

<%= recode_length_seconds(item.length_seconds) %>

<% end %>
<% end %>

<%= item.title %>

<%= item.author %>

<% if item.responds_to?(:premiere_timestamp) && item.premiere_timestamp && item.premiere_timestamp.not_nil! > Time.utc %>
<%= 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)) %>
<% else %>
<% end %>
<%= item.responds_to?(:views) && item.views ? translate(locale, "`x` views", number_to_short_text(item.views || 0)) : "" %>
<% end %>