diff --git a/app/components/polls/questions/read_more_answer_component.html.erb b/app/components/polls/questions/read_more_answer_component.html.erb index 1810f981a..27f87d7ed 100644 --- a/app/components/polls/questions/read_more_answer_component.html.erb +++ b/app/components/polls/questions/read_more_answer_component.html.erb @@ -3,12 +3,8 @@
- - <%= t("polls.show.documents") %> -
+ <% if answer.images.any? %> + <%= render "polls/gallery", answer: answer %> + <% end %> - <% answer.documents.each do |document| %> - <%= link_to document.title, - document.attachment, - target: "_blank", - rel: "nofollow" %>+ + <%= t("polls.show.documents") %> +
- <% if answer.videos.present? %> -- - <%= t("polls.show.videos") %> -
+ <% answer.documents.each do |document| %> + <%= link_to document.title, + document.attachment, + target: "_blank", + rel: "nofollow" %>+ + <%= t("polls.show.videos") %> +
+ + <% answer.videos.each do |video| %> + <%= link_to video.title, + video.url, + target: "_blank", + rel: "nofollow" %>