From b8f2fd1c54e75f6792993fd3f7d89df295e60cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Checa?= Date: Thu, 5 Oct 2017 17:34:10 +0200 Subject: [PATCH] Markup fixes --- .../admin/poll/questions/answers/documents.html.erb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/admin/poll/questions/answers/documents.html.erb b/app/views/admin/poll/questions/answers/documents.html.erb index 4c859a78d..d9036b163 100644 --- a/app/views/admin/poll/questions/answers/documents.html.erb +++ b/app/views/admin/poll/questions/answers/documents.html.erb @@ -2,7 +2,11 @@

<%= t("admin.questions.show.answers.documents_list") %>

-

<%= link_to @question.poll.name, admin_poll_path(@question.poll) %> > <%= link_to @question.title, admin_question_path(@question) %> > <%= @answer.title %>

+
<%= form_for(@answer, url: admin_question_answer_path(@question, @answer)) do |f| %> @@ -30,15 +34,15 @@ - + <% @answer.documents.each do |document| %> - -
<%= t("admin.questions.show.answers.document_title") %><%= t("admin.questions.show.answers.document_actions") %><%= t("admin.questions.show.answers.document_actions") %>
+ <%= link_to document.title, document.attachment.url %> + <%= link_to t('documents.buttons.download_document'), document.attachment.url, target: "_blank",