<% content_for "header" do %> <%= translate(locale, "History") %> - Invidious <% end %>

<%= translate(locale, "`x` videos", %(#{user.watched.size})) %>

<%= translate(locale, "`x` subscriptions", %(#{user.subscriptions.size})) %>

<%= translate(locale, "Clear watch history") %>

<% watched.each_slice(4) do |slice| %> <% slice.each do |item| %>
<% end %> <% end %>
<% if page >= 2 %> <%= translate(locale, "Previous page") %> <% end %>
<% if watched.size >= limit %> <%= translate(locale, "Next page") %> <% end %>