From 316b6720cbc574a85a3efa2a8905436409befd3e Mon Sep 17 00:00:00 2001 From: decabeza Date: Sat, 7 Oct 2017 14:31:04 +0200 Subject: [PATCH] fixes polls show indentation and adds missing <% end %> --- app/views/polls/show.html.erb | 66 +++++++++++++++++------------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index a6324b985..913b58d4c 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -71,41 +71,41 @@
- <% @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? %> -
-
+ <% if answer.description.present? %> +
<%= safe_html_with_links simple_format(answer.description) %>
- - <%= t("polls.show.read_more", answer: answer.title) %> - - - <%= t("polls.show.read_less", answer: answer.title) %> - -
- <% end %> + <% end %> - <% if answer.documents.present? %> + <% if answer.images.any? %> + <%= render "gallery", answer: answer %> + <% end %> + + <% if answer.description.present? %> + + <% end %> + + <% if answer.documents.present? %> <% answer.documents.each do |document| %> <%= link_to document.title, document.attachment.url, @@ -113,8 +113,8 @@ rel: "nofollow" %> <% end %> <% end %> -
- +
+ <% end %>
<% end %>