% content_for "header" do %>
<%= playlist.title %> - Invidious
<% end %>
<%= playlist.title %>
<% if playlist.is_a? InvidiousPlaylist %>
<% if playlist.author == user.try &.email %>
<%= playlist.author %> |
<% else %>
<%= playlist.author %> |
<% end %>
<%= translate(locale, "`x` videos", "#{playlist.video_count}") %> |
<%= translate(locale, "Updated `x` ago", recode_date(playlist.updated, locale)) %> |
<% case playlist.as(InvidiousPlaylist).privacy when %>
<% when PlaylistPrivacy::Public %>
<%= translate(locale, "Public") %>
<% when PlaylistPrivacy::Unlisted %>
<%= translate(locale, "Unlisted") %>
<% when PlaylistPrivacy::Private %>
<%= translate(locale, "Private") %>
<% end %>
<% else %>
<%= playlist.author %> |
<%= translate(locale, "`x` videos", "#{playlist.video_count}") %> |
<%= translate(locale, "Updated `x` ago", recode_date(playlist.updated, locale)) %>
<% end %>
<% if !playlist.is_a? InvidiousPlaylist %>
<% end %>
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>
<% end %>
<%= playlist.description_html %>
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>
<% end %>
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>
<% end %>
<% videos.each_slice(4) do |slice| %>
<% slice.each do |item| %>
<%= rendered "components/item" %>
<% end %>
<% end %>