2018-01-07 17:40:03 +00:00
|
|
|
<% content_for "header" do %>
|
2018-01-28 02:10:37 +00:00
|
|
|
<title><%= query.size > 30 ? query[0,30].rstrip(".") + "..." : query %> - Invidious</title>
|
2018-01-07 17:40:03 +00:00
|
|
|
<% end %>
|
2018-01-15 03:16:09 +00:00
|
|
|
|
2018-02-06 00:05:23 +00: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-03-11 17:08:44 +00:00
|
|
|
<div class="l-box">
|
2018-03-07 04:03:45 +00:00
|
|
|
<a style="width:100%;" href="<%= video["link"] %>">
|
2018-02-06 00:44:42 +00:00
|
|
|
<img style="width:100%;" src="<%= video["thumbnail"] %>"/>
|
2018-02-05 01:43:16 +00:00
|
|
|
<%= video["title"] %>
|
2018-01-16 04:11:51 +00:00
|
|
|
</a>
|
2018-03-07 04:03:45 +00:00
|
|
|
<p><b><a style="width:100%;" href="<%= video["author_url"]%>"><%= video["author"] %></a></b></p>
|
2018-01-16 04:11:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-06 00:05:23 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2018-01-15 03:16:09 +00:00
|
|
|
<% end %>
|
|
|
|
|
2018-02-06 00:44:42 +00:00
|
|
|
<p style="text-align:right;">
|
2018-03-07 04:03:45 +00:00
|
|
|
<a href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
|
2018-02-06 01:11:57 +00:00
|
|
|
</p>
|