<% content_for "header" do %> <%= playlist.title %> - Invidious <% end %>
<%= translate(locale, "Editing playlist `x`", %|"#{HTML.escape(playlist.title)}"|) %>
value="<%= HTML.escape(query) %>"<% else %>placeholder="<%= translate(locale, "Search for videos") %>"<% end %>>
<% videos.each_slice(4) do |slice| %> <% slice.each do |item| %> <%= rendered "components/item" %> <% end %> <% end %>
<% if query %>
<% if page > 1 %> <%= translate(locale, "Previous page") %> <% end %>
<% if videos.size >= 20 %> <%= translate(locale, "Next page") %> <% end %>
<% end %>