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