Added video URL and document to poll question preview

This commit is contained in:
María Checa
2017-09-07 17:15:20 +02:00
parent 3ff89b2476
commit 355d68c7f8
3 changed files with 20 additions and 1 deletions

View File

@@ -40,6 +40,21 @@
<%= @question.description %>
</p>
<% if @question.video_url.present? %>
<p>
<strong><%= t("admin.questions.show.video_url") %></strong>
<br>
<a href="<%= @question.video_url %>"><%= @question.video_url %></a>
</p>
<% end %>
<% if @question.documents.any? %>
<p>
<strong><%= t("admin.questions.show.documents") %></strong>
<br>
<a href="<%= @question.documents.first.attachment.url %>"><%= @question.documents.first.title %></a>
</p>
<% end %>
<%= link_to t("admin.questions.show.preview"), question_path(@question) %>
</div>

View File

@@ -590,6 +590,8 @@ en:
title: Title
valid_answers: Valid answers
description: Description
video_url: External video
documents: Documents
preview: View on website
recounts:
index:

View File

@@ -509,7 +509,7 @@ es:
assignments: "Turnos en esta urna"
no_assignments: "Esta urna no tiene turnos asignados"
flash:
create: "Añadido turno de presidente de mesa"
create: "Añadido turno de presidente de mesa"
destroy: "Eliminado turno de presidente de mesa"
poll_booth_assignments:
flash:
@@ -590,6 +590,8 @@ es:
title: Título
valid_answers: Respuestas válidas
description: Descripción
video_url: Video externo
documents: Documentos
preview: Ver en la web
recounts:
index: