Add thumbnails for related videos

This commit is contained in:
Omar Roth 2018-01-16 14:25:59 -06:00
parent 6b5426b5f6
commit 634b5f6c87

View File

@ -71,7 +71,10 @@ var player = videojs('player', options, function() {
<div class="pure-u-1 pure-u-md-1-5"> <div class="pure-u-1 pure-u-md-1-5">
<% rvs.each do |rv| %> <% rvs.each do |rv| %>
<% if rv.has_key?("id") %> <% if rv.has_key?("id") %>
<p><a class="link" href="/watch?v=<%= rv["id"] %>"><%= rv["title"] %></a></p> <a target="_blank" class="link" href="/watch?v=<%= rv["id"] %>">
<img style="width:100%" alt="thumbnail" src="<%= rv["iurlmq"] %>">
</a>
<p><a target="_blank" class="link" href="/watch?v=<%= rv["id"] %>"><%= rv["title"] %></a></p>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>