From a08d5bdba9defd0a29192d4c1b3ae25b5c8e6e00 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sat, 7 Oct 2017 17:00:26 +0200 Subject: [PATCH] fixes conflict in merge --- app/views/polls/show.html.erb | 106 ++++++++++++++++------------------ 1 file changed, 51 insertions(+), 55 deletions(-) diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index ad8b9b0c5..126617684 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -74,64 +74,60 @@ - <% @poll.questions.map(&:question_answers).flatten.each do |answer| %> - <% if answer.description.present? || answer.images.any? || answer.documents.present? %> -
-
+
+
- <% @poll.questions.map(&:question_answers).flatten.each do |answer| %> -
-

<%= answer.title %>

+ <% @poll.questions.map(&:question_answers).flatten.each do |answer| %> +
+

<%= answer.title %>

- <% if answer.description.present? %> -
- <%= safe_html_with_links simple_format(answer.description) %> -
- <% end %> - - <% if answer.images.any? %> - <%= render "gallery", answer: answer %> - <% end %> - - <% if answer.description.present? %> - - <% end %> - - <% if answer.documents.present? %> - - <% end %> + <% if answer.description.present? %> +
+ <%= safe_html_with_links simple_format(answer.description) %>
<% end %> + + <% if answer.images.any? %> + <%= render "gallery", answer: answer %> + <% end %> + + <% if answer.description.present? %> + + <% end %> + + <% if answer.documents.present? %> + + <% end %>
-
- <% end %> - <% end %> + <% end %> +
+