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
|
|
|
|
2018-02-06 05:35:23 +05:30
|
|
|
<% videos.each_slice(4) do |slice| %>
|
|
|
|
<div class="pure-g">
|
2018-03-16 22:44:40 +05:30
|
|
|
<% slice.each do |video| %>
|
2018-02-06 05:35:23 +05:30
|
|
|
<div class="pure-u-1 pure-u-md-1-4">
|
2018-03-17 08:48:55 +05:30
|
|
|
<div style="overflow-wrap:break-word; word-wrap:break-word;" class="h-box">
|
2018-03-07 09:33:45 +05:30
|
|
|
<a style="width:100%;" href="<%= video["link"] %>">
|
2018-02-06 06:14:42 +05:30
|
|
|
<img style="width:100%;" src="<%= video["thumbnail"] %>"/>
|
2018-03-25 09:09:07 +05:30
|
|
|
<p><%= video["title"] %></p>
|
2018-01-16 09:41:51 +05:30
|
|
|
</a>
|
2018-03-16 22:44:40 +05:30
|
|
|
<p>
|
|
|
|
<b><a style="width:100%;" href="<%= video["author_url"]%>"><%= video["author"] %></a></b>
|
|
|
|
</p>
|
2018-01-16 09:41:51 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-06 05:35:23 +05:30
|
|
|
<% end %>
|
|
|
|
</div>
|
2018-01-15 08:46:09 +05:30
|
|
|
<% end %>
|
|
|
|
|
2018-03-25 09:44:35 +05:30
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
<% if page > 2 %>
|
|
|
|
<a href="/search?q=<%= query %>&page=<%= page - 1 %>">Previous page</a>
|
|
|
|
<% else %>
|
|
|
|
<a href="/search?q=<%= query %>">Previous page</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-3-5"></div>
|
|
|
|
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
|
|
|
|
<a href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
|
|
|
|
</div>
|
|
|
|
</div>
|