diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 1eb128333..e3405c0a8 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -66,29 +66,29 @@ -
-
+ <% @poll.questions.map(&:question_answers).flatten.each do |answer| %> + <% if answer.description.present? || answer.images.any? %> +
+
- <% @poll.questions.map(&:question_answers).flatten.each do |answer| %> -
+
- <% if answer.description.present? %> -

<%= answer.title %>

- <% end %> + <% if answer.description.present? %> +

<%= answer.title %>

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