Clean up views

This commit is contained in:
Omar Roth
2018-02-05 18:44:42 -06:00
parent f47eb3016a
commit 2e402c1977
4 changed files with 10 additions and 11 deletions

View File

@@ -7,9 +7,9 @@
<% slice.each do |video| %>
<% player_response = JSON.parse(video.info["player_response"]) %>
<div class="pure-u-1 pure-u-md-1-4">
<div style="margin: 1em;">
<div style="margin:1em;">
<a style="width:100%;" class="link" href="/watch?v=<%= video.id %>">
<img style="width:100%" src="<%= player_response["videoDetails"]["thumbnail"]["thumbnails"][0]["url"] %>"/>
<img style="width:100%;" src="<%= player_response["videoDetails"]["thumbnail"]["thumbnails"][0]["url"] %>"/>
<%= video.title %>
</a>
</div>