<% content_for "header" do %> <%= author %> - Invidious <% end %>

<%= author %>

<% sub_count_text = number_to_short_text(sub_count) %> <%= rendered "components/subscribe_widget" %>
<% if !auto_generated %> <%= translate(locale, "Playlists") %> <% end %>
<% {"last", "oldest", "newest"}.each do |sort| %>
<% if sort_by == sort %> <%= translate(locale, sort) %> <% else %> <%= translate(locale, sort) %> <% end %>
<% end %>

<% items.each_slice(4) do |slice| %> <% slice.each do |item| %> <%= rendered "components/item" %> <% end %> <% end %>
<% if items.size >= 28 %> &sort_by=<%= sort_by %><% end %>"> <%= translate(locale, "Next page") %> <% end %>