invidious-mod-JP/src/views/search.ecr

25 lines
758 B
Plaintext
Raw Normal View History

2018-01-07 17:40:03 +00:00
<% content_for "header" do %>
2018-01-15 03:16:09 +00:00
<%= query.size > 30 ? query[0,30].chomp("...") + "... - " : query + " - " %>
2018-01-07 17:40:03 +00:00
<% end %>
2018-01-15 03:16:09 +00:00
<% videos.each do |item| %>
2018-01-16 04:11:51 +00:00
<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>
2018-01-15 03:16:09 +00:00
<% end %>
2018-01-16 04:11:51 +00:00
<p style="text-align: right">
<a href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
</p>