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 %> +
+