|
|
@ -2,22 +2,19 @@
|
|
|
|
<title><%= query.size > 30 ? query[0,30].rstrip(".") + "..." : query %> - Invidious</title>
|
|
|
|
<title><%= query.size > 30 ? query[0,30].rstrip(".") + "..." : query %> - Invidious</title>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% videos.each do |video| %>
|
|
|
|
<% videos.each_slice(4) do |slice| %>
|
|
|
|
<p style="padding:1em;">
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-g">
|
|
|
|
<% slice.each do |video| %>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-4">
|
|
|
|
<a class="link" href="<%= video["link"] %>">
|
|
|
|
<div style="margin: 1em;">
|
|
|
|
<img style="width:100%" alt="thumbnail" src="<%= video["thumbnail"] %>">
|
|
|
|
<a style="width:100%;" class="link" href="/watch?v=<%= video["link"] %>">
|
|
|
|
</a>
|
|
|
|
<img style="width:100%" src="<%= video["thumbnail"] %>"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-4-5">
|
|
|
|
|
|
|
|
<a style="display:block; width:100%; height:100%" class="link" href="<%= video["link"] %>">
|
|
|
|
|
|
|
|
<%= video["title"] %>
|
|
|
|
<%= video["title"] %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<p style="text-align: right">
|
|
|
|
<p style="text-align: right">
|
|
|
|