Show proposal question only if it is present

This prevent render an empty <h4> tag.
This commit is contained in:
decabeza
2019-03-07 14:05:28 +01:00
parent 5d62ab71ff
commit cfe034d401

View File

@@ -60,10 +60,11 @@
</p>
<%= text_with_links @proposal.video_url %>
</div>
<% end %>
<% if @proposal.question.present? %>
<h4><%= @proposal.question %></h4>
<% end %>
<% if @proposal.retired? %>
<div id="retired_explanation" class="callout">