mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
25 lines
775 B
Text
25 lines
775 B
Text
<% content_for "header" do %>
|
|
<title><%= search_query.not_nil!.size > 30 ? query.not_nil![0,30].rstrip(".") + "..." : query.not_nil! %> - Invidious</title>
|
|
<% end %>
|
|
|
|
<% videos.each_slice(4) do |slice| %>
|
|
<div class="pure-g">
|
|
<% slice.each do |item| %>
|
|
<%= rendered "components/item" %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="pure-g h-box">
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
<% if page >= 2 %>
|
|
<a href="/search?q=<%= query %>&page=<%= page - 1 %>">Previous page</a>
|
|
<% end %>
|
|
</div>
|
|
<div class="pure-u-1 pure-u-md-3-5"></div>
|
|
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
|
|
<% if count >= 20 %>
|
|
<a href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|