From 7cfd47ad87a3d72b30d95b8d5fdd90e91322c6c0 Mon Sep 17 00:00:00 2001 From: decabeza Date: Sat, 7 Oct 2017 17:11:40 +0200 Subject: [PATCH] removes duplicated content on polls show --- app/views/polls/show.html.erb | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 126617684..399d28651 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -80,12 +80,9 @@ <% @poll.questions.map(&:question_answers).flatten.each do |answer| %>
-

<%= answer.title %>

<% if answer.description.present? %> -
- <%= safe_html_with_links simple_format(answer.description) %> -
+

<%= answer.title %>

<% end %> <% if answer.images.any? %> @@ -112,19 +109,19 @@ <% end %> <% if answer.documents.present? %> - <% end %>
<% end %>