2018-01-07 17:40:03 +00:00
|
|
|
<% content_for "header" do %>
|
2018-11-08 23:27:21 +00:00
|
|
|
<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 17:40:03 +00:00
|
|
|
<% end %>
|
2018-01-15 03:16:09 +00:00
|
|
|
|
2019-11-20 18:59:07 +00:00
|
|
|
<div class="pure-g h-box v-box">
|
|
|
|
<div class="pure-u-1 pure-u-lg-1-5">
|
|
|
|
<% if page > 1 %>
|
|
|
|
<a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page - 1 %>">
|
|
|
|
<%= translate(locale, "Previous page") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-lg-3-5"></div>
|
|
|
|
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
|
|
|
|
<% if count >= 20 %>
|
|
|
|
<a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page + 1 %>">
|
|
|
|
<%= translate(locale, "Next page") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-02-06 00:05:23 +00:00
|
|
|
<div class="pure-g">
|
2019-05-02 01:03:39 +00:00
|
|
|
<% videos.each_slice(4) do |slice| %>
|
|
|
|
<% slice.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
|
|
|
<% end %>
|
2018-02-06 00:05:23 +00:00
|
|
|
<% end %>
|
2019-03-23 19:05:13 +00:00
|
|
|
</div>
|
2018-01-15 03:16:09 +00:00
|
|
|
|
2018-08-05 04:07:38 +00:00
|
|
|
<div class="pure-g h-box">
|
2019-04-14 22:04:52 +00:00
|
|
|
<div class="pure-u-1 pure-u-lg-1-5">
|
2019-06-08 21:04:55 +00:00
|
|
|
<% if page > 1 %>
|
2019-05-02 01:03:39 +00:00
|
|
|
<a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page - 1 %>">
|
|
|
|
<%= translate(locale, "Previous page") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-03-25 04:14:35 +00:00
|
|
|
</div>
|
2019-04-14 22:04:52 +00:00
|
|
|
<div class="pure-u-1 pure-u-lg-3-5"></div>
|
2019-05-02 01:03:39 +00:00
|
|
|
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
|
|
|
|
<% if count >= 20 %>
|
|
|
|
<a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page + 1 %>">
|
|
|
|
<%= translate(locale, "Next page") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-03-25 04:14:35 +00:00
|
|
|
</div>
|
2018-08-17 16:04:38 +00:00
|
|
|
</div>
|