From 0ba2dbd4f38fb96561108c1c63ccd7354caa161d Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 5 Oct 2017 11:45:51 +0200 Subject: [PATCH] replaces lorem content on polls show --- app/views/polls/show.html.erb | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 3f499c857..b632fac55 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -63,23 +63,18 @@
<% @poll.questions.map(&:question_answers).flatten.each do |answer| %> -
- -

Answer 1

- +

<%= answer.title %>

- - <%= render "gallery", answer: answer %> - + <% if answer.images.any? %> + <%= render "gallery", answer: answer %> + <% end %> -
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ <%= safe_html_with_links simple_format(answer.description) %>
-
<% end %>