2018-01-07 23:10:03 +05:30
|
|
|
<% content_for "header" do %>
|
2018-08-05 09:37:38 +05:30
|
|
|
<title><%= query.not_nil!.size > 30 ? query.not_nil![0,30].rstrip(".") + "..." : query.not_nil! %> - Invidious</title>
|
2018-01-07 23:10:03 +05:30
|
|
|
<% end %>
|
2018-01-15 08:46:09 +05:30
|
|
|
|
2018-02-06 05:35:23 +05:30
|
|
|
<% videos.each_slice(4) do |slice| %>
|
|
|
|
<div class="pure-g">
|
2018-03-16 22:44:40 +05:30
|
|
|
<% slice.each do |video| %>
|
2018-06-02 03:56:00 +05:30
|
|
|
<%= rendered "components/video" %>
|
2018-02-06 05:35:23 +05:30
|
|
|
<% end %>
|
2018-06-02 03:56:00 +05:30
|
|
|
</div>
|
2018-01-15 08:46:09 +05:30
|
|
|
<% end %>
|
|
|
|
|
2018-08-05 09:37:38 +05:30
|
|
|
<div class="pure-g h-box">
|
2018-03-25 09:44:35 +05:30
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
<% if page > 2 %>
|
|
|
|
<a href="/search?q=<%= query %>&page=<%= page - 1 %>">Previous page</a>
|
|
|
|
<% else %>
|
|
|
|
<a href="/search?q=<%= query %>">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>
|