invidious-copy-2022-08-14/src/invidious/views/search.ecr

23 lines
730 B
Text
Raw Normal View History

2018-01-07 17:40:03 +00:00
<% content_for "header" do %>
2018-08-05 04:07:38 +00:00
<title><%= query.not_nil!.size > 30 ? query.not_nil![0,30].rstrip(".") + "..." : query.not_nil! %> - Invidious</title>
2018-01-07 17:40:03 +00:00
<% end %>
2018-01-15 03:16:09 +00:00
<% videos.each_slice(4) do |slice| %>
<div class="pure-g">
<% slice.each do |video| %>
2018-06-01 22:26:00 +00:00
<%= rendered "components/video" %>
<% end %>
2018-06-01 22:26:00 +00:00
</div>
2018-01-15 03:16:09 +00:00
<% end %>
2018-08-05 04:07:38 +00:00
<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">
<a href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
</div>
</div>