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>

View File

@@ -495,6 +495,7 @@ en:
read_more: "Read more about %{answer}"
read_less: "Read less about %{answer}"
participate_in_other_polls: Participate in other polls
videos: "External video"
poll_questions:
create_question: "Create question"
default_valid_answers: "Yes, No"

View File

@@ -495,6 +495,7 @@ es:
read_more: "Leer más sobre %{answer}"
read_less: "Leer menos sobre %{answer}"
participate_in_other_polls: Participar en otras votaciones
videos: "Vídeo externo"
poll_questions:
create_question: "Crear pregunta para votación"
default_valid_answers: "Sí, No"