invidious-mod-JP/src/views/search.ecr
2018-01-21 11:05:54 -06:00

25 lines
783 B
Plaintext

<% content_for "header" do %>
<title><%= query.size > 30 ? query[0,30].chomp("...") + "..." : query %> - Invidious</title>
<% end %>
<% videos.each do |item| %>
<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>
<% end %>
<p style="text-align: right">
<a class="link" href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
</p>