<% content_for "header" do %> <%= playlist.title %> - Invidious <% end %>

<%= playlist.author %> | <%= translate(locale, "`x` videos", "#{playlist.video_count}") %> | <%= translate(locale, "Updated `x` ago", recode_date(playlist.updated, locale)) %> | ">
<% 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 %>
<% if page > 1 %> <%= translate(locale, "Previous page") %> <% end %>
<% if videos.size == 100 %> <%= translate(locale, "Next page") %> <% end %>