<% title = HTML.escape(playlist.title) %> <% content_for "header" do %> <%= title %> - Invidious <% end %>

<%= HTML.escape(playlist.author) %> | <%= translate_count(locale, "generic_videos_count", 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 do |item| %> <%= rendered "components/item" %> <% end %>
<% if page > 1 %> <%= translate(locale, "Previous page") %> <% end %>
<% if videos.size == 100 %> <%= translate(locale, "Next page") %> <% end %>