Add header

This commit is contained in:
Omar Roth
2018-01-07 11:40:03 -06:00
parent 060c4da96d
commit eed7a25e7d
4 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
<% content_for "header" do %>
<%= query.size > 30 ? query[0,30] + "..." : query %>
<% end %>
<% videos_list.each do |video| %>
<p><a href="/watch?v=<%= video.id %>"><%= video.info["title"] %></a></p>
<% end %>