2018-01-07 23:10:03 +05:30
|
|
|
<% content_for "header" do %>
|
2018-11-09 04:57:21 +05:30
|
|
|
<title><%= search_query.not_nil!.size > 30 ? HTML.escape(query.not_nil![0,30].rstrip(".") + "...") : HTML.escape(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
|
|
|
<div class="pure-g">
|
2018-11-20 06:13:06 +05:30
|
|
|
<% videos.each_slice(4) do |slice| %>
|
2018-09-20 20:06:09 +05:30
|
|
|
<% slice.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
2018-02-06 05:35:23 +05:30
|
|
|
<% end %>
|
2018-01-15 08:46:09 +05:30
|
|
|
<% end %>
|
2019-03-24 00:35:13 +05:30
|
|
|
</div>
|
2018-01-15 08:46:09 +05:30
|
|
|
|
2018-08-05 09:37:38 +05:30
|
|
|
<div class="pure-g h-box">
|
2019-04-15 03:34:52 +05:30
|
|
|
<div class="pure-u-1 pure-u-lg-1-5">
|
2018-08-15 05:45:33 +05:30
|
|
|
<% if page >= 2 %>
|
2018-12-21 03:02:09 +05:30
|
|
|
<a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page - 1 %>">
|
|
|
|
<%= translate(locale, "Previous page") %>
|
|
|
|
</a>
|
2018-03-25 09:44:35 +05:30
|
|
|
<% end %>
|
|
|
|
</div>
|
2019-04-15 03:34:52 +05:30
|
|
|
<div class="pure-u-1 pure-u-lg-3-5"></div>
|
|
|
|
<div style="text-align:right;" class="pure-u-1 pure-u-lg-1-5">
|
2018-09-14 04:17:31 +05:30
|
|
|
<% if count >= 20 %>
|
2018-12-21 03:02:09 +05:30
|
|
|
<a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page + 1 %>">
|
|
|
|
<%= translate(locale, "Next page") %>
|
|
|
|
</a>
|
2018-08-26 03:48:43 +05:30
|
|
|
<% end %>
|
2018-03-25 09:44:35 +05:30
|
|
|
</div>
|
2018-08-17 21:34:38 +05:30
|
|
|
</div>
|