shows videos on polls answers

This commit is contained in:
decabeza
2017-10-09 13:01:39 +02:00
parent bd62af9eb7
commit ba9814cd85
3 changed files with 18 additions and 0 deletions

View File

@@ -125,6 +125,22 @@
<% end %>
</div>
<% end %>
<% if answer.videos.present? %>
<div class="video-link">
<p>
<span class="icon-video"></span>&nbsp;
<strong><%= t("polls.show.videos") %></strong>
</p>
<% answer.videos.each do |video| %>
<%= link_to video.title,
video.url,
target: "_blank",
rel: "nofollow" %><br>
<% end %>
</div>
<% end %>
</div>
<% end %>
</div>