From cfe034d40176e5606780a6574fed488584faff4d Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 7 Mar 2019 14:05:28 +0100 Subject: [PATCH] Show proposal question only if it is present This prevent render an empty

tag. --- app/views/proposals/_info.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/proposals/_info.html.erb b/app/views/proposals/_info.html.erb index 44d5b76f3..6d0abf91c 100644 --- a/app/views/proposals/_info.html.erb +++ b/app/views/proposals/_info.html.erb @@ -60,10 +60,11 @@

<%= text_with_links @proposal.video_url %> - <% end %> -

<%= @proposal.question %>

+<% if @proposal.question.present? %> +

<%= @proposal.question %>

+<% end %> <% if @proposal.retired? %>