From 8b8e8aff8fa636748128e4a3ab377fb19d1cc0da Mon Sep 17 00:00:00 2001 From: Angel Perez Date: Fri, 6 Oct 2017 14:46:13 -0400 Subject: [PATCH] Show answer's title if answer has any records associated If an answer has a description and/or documents/images associated, the answer's title will be shown on the UI so the user can associate a certain answer with its related records See issue #1998, as well as commit 7fad604 --- app/views/polls/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 8347455ae..5dc138f8d 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -74,9 +74,9 @@
- <% if answer.description.present? %> -

<%= answer.title %>

+

<%= answer.title %>

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