2018-01-07 17:40:03 +00:00
|
|
|
<% content_for "header" do %>
|
2018-01-21 17:05:54 +00:00
|
|
|
<title><%= query.size > 30 ? query[0,30].chomp("...") + "..." : query %> - Invidious</title>
|
2018-01-07 17:40:03 +00:00
|
|
|
<% end %>
|
2018-01-15 03:16:09 +00:00
|
|
|
|
|
|
|
<% videos.each do |item| %>
|
2018-01-16 04:11:51 +00:00
|
|
|
<p>
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
<a class="link" href="<%= item["link"] %>">
|
|
|
|
<img style="width:90%" alt="thumbnail" src="<%= item["thumbnail"] %>">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-4-5">
|
|
|
|
<a style="display:block; width:100%; height:100%" class="link" href="<%= item["link"] %>">
|
|
|
|
<%= item["title"] %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-01-15 03:16:09 +00:00
|
|
|
<% end %>
|
|
|
|
|
2018-01-16 04:11:51 +00:00
|
|
|
<p style="text-align: right">
|
2018-01-21 17:05:54 +00:00
|
|
|
<a class="link" href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
|
2018-01-16 04:11:51 +00:00
|
|
|
</p>
|