2018-01-07 11:40:03 -06:00
|
|
|
<% content_for "header" do %>
|
2018-01-27 20:10:37 -06:00
|
|
|
<title><%= query.size > 30 ? query[0,30].rstrip(".") + "..." : query %> - Invidious</title>
|
2018-01-07 11:40:03 -06:00
|
|
|
<% end %>
|
2018-01-14 21:16:09 -06:00
|
|
|
|
2018-02-05 18:05:23 -06:00
|
|
|
<% videos.each_slice(4) do |slice| %>
|
|
|
|
<div class="pure-g">
|
|
|
|
<% slice.each do |video| %>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-4">
|
2018-02-05 18:44:42 -06:00
|
|
|
<div style="margin:1em;">
|
2018-02-06 17:30:53 -06:00
|
|
|
<a style="width:100%;" class="link" href="<%= video["link"] %>">
|
2018-02-05 18:44:42 -06:00
|
|
|
<img style="width:100%;" src="<%= video["thumbnail"] %>"/>
|
2018-02-04 19:43:16 -06:00
|
|
|
<%= video["title"] %>
|
2018-01-15 22:11:51 -06:00
|
|
|
</a>
|
2018-02-26 20:59:18 -06:00
|
|
|
<p><b><a style="width:100%;" class="link" href="<%= video["author_url"]%>"><%= video["author"] %></a></b></p>
|
2018-01-15 22:11:51 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-05 18:05:23 -06:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2018-01-14 21:16:09 -06:00
|
|
|
<% end %>
|
|
|
|
|
2018-02-05 18:44:42 -06:00
|
|
|
<p style="text-align:right;">
|
2018-01-21 11:05:54 -06:00
|
|
|
<a class="link" href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
|
2018-02-05 19:11:57 -06:00
|
|
|
</p>
|