2018-01-08 02:40:03 +09:00
|
|
|
<% content_for "header" do %>
|
2018-01-28 11:10:37 +09:00
|
|
|
<title><%= query.size > 30 ? query[0,30].rstrip(".") + "..." : query %> - Invidious</title>
|
2018-01-08 02:40:03 +09:00
|
|
|
<% end %>
|
2018-01-15 12:16:09 +09:00
|
|
|
|
|
|
|
<% videos.each do |item| %>
|
2018-01-16 13:11:51 +09: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 12:16:09 +09:00
|
|
|
<% end %>
|
|
|
|
|
2018-01-16 13:11:51 +09:00
|
|
|
<p style="text-align: right">
|
2018-01-22 02:05:54 +09:00
|
|
|
<a class="link" href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
|
2018-01-16 13:11:51 +09:00
|
|
|
</p>
|