From e44fe7634a3a51c53d5edd223cba8fe4bef41c99 Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 1 Sep 2022 12:48:53 +0200 Subject: [PATCH] Change the rendering order of answer additional information --- .../read_more_answer_component.html.erb | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) 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 @@
" id="answer_<%= answer.id %>">

<%= answer.title %>

- <% if answer.images.any? %> - <%= render "polls/gallery", answer: answer %> - <% end %> - - <% if answer.description.present? %> -
+
+ <% if answer.description.present? %>
<%= wysiwyg(answer.description) %>
@@ -25,39 +21,43 @@ <%= t("polls.show.read_less", answer: answer.title) %>
-
- <% end %> + <% end %> - <% if answer.documents.present? %> - - <% end %> + <% if answer.documents.present? %> + - <% end %> + <% if answer.videos.present? %> + + <% end %> +
<% end %>