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
|
|
|
|
|
|
|
<% videos.each do |item| %>
|
2018-01-16 09:41:51 +05:30
|
|
|
<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 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>
|