Freshen up for the big dance

This commit is contained in:
Omar Roth
2018-01-14 21:16:09 -06:00
parent 60c618942f
commit 38cff5a752
5 changed files with 92 additions and 103 deletions

View File

@@ -1,17 +1,9 @@
<% content_for "header" do %>
<%= query.size > 30 ? query[0,30] + "... - " : query %>
<%= query.size > 30 ? query[0,30].chomp("...") + "... - " : query + " - " %>
<% end %>
<% videos_list.each do |video| %>
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-6">
<a class="link" href="/watch?v=<%= video.id %>">
<img style="width: 90%" src="<%= video.info["thumbnail_url"] %>">
</a>
</div>
<div class="pure-u-1 pure-u-md-5-6">
<a style="width: 100%; height:100%; display: block; position: relative" class="link" href="/watch?v=<%= video.id %>">
<%= video.info["title"] %>
</a>
</div>
</div>
<% end %>
<% videos.each do |item| %>
<p><a class="link" href="<%= item["link"] %>"><%= item["title"] %></a></p>
<% end %>
<p style="text-align: right"><a href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a></p>