invidious-experimenting/src/views/search.ecr

25 lines
809 B
Plaintext
Raw Normal View History

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 |video| %>
<p style="padding:1em;">
2018-01-16 09:41:51 +05:30
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5">
<a class="link" href="<%= video["link"] %>">
<img style="width:100%" alt="thumbnail" src="<%= video["thumbnail"] %>">
2018-01-16 09:41:51 +05:30
</a>
</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"] %>
2018-01-16 09:41:51 +05:30
</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>