2018-01-07 23:10:03 +05:30
|
|
|
<% content_for "header" do %>
|
2018-01-28 07:40:37 +05:30
|
|
|
<title><%= query.size > 30 ? query[0,30].rstrip(".") + "..." : query %> - 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">
|
|
|
|
<% slice.each do |video| %>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-4">
|
|
|
|
<div style="margin: 1em;">
|
|
|
|
<a style="width:100%;" class="link" href="/watch?v=<%= video["link"] %>">
|
|
|
|
<img style="width:100%" src="<%= video["thumbnail"] %>"/>
|
2018-02-05 07:13:16 +05:30
|
|
|
<%= video["title"] %>
|
2018-01-16 09:41:51 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-06 05:35:23 +05:30
|
|
|
<% end %>
|
|
|
|
</div>
|
2018-01-15 08:46:09 +05:30
|
|
|
<% end %>
|
|
|
|
|
2018-01-16 09:41:51 +05:30
|
|
|
<p style="text-align: right">
|
2018-01-21 22:35:54 +05:30
|
|
|
<a class="link" href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
|
2018-01-16 09:41:51 +05:30
|
|
|
</p>
|