% ucid = channel.ucid %>
<% author = HTML.escape(channel.author) %>
<% content_for "header" do %>
<%= author %> - Invidious
<% end %>
<% if channel.banner %>
">
<% end %>
<%= author %>
<%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content if !channel.description_html.empty? %>
<% sub_count_text = number_to_short_text(channel.sub_count) %>
<%= rendered "components/subscribe_widget" %>
<% if !channel.auto_generated %>
<%= translate(locale, "Playlists") %>
<% end %>
<% {"last", "oldest", "newest"}.each do |sort| %>
<% end %>
<% items.each do |item| %>
<%= rendered "components/item" %>
<% end %>