Show proposal question only if it is present
This prevent render an empty <h4> tag.
This commit is contained in:
@@ -60,10 +60,11 @@
|
|||||||
</p>
|
</p>
|
||||||
<%= text_with_links @proposal.video_url %>
|
<%= text_with_links @proposal.video_url %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% if @proposal.question.present? %>
|
||||||
<h4><%= @proposal.question %></h4>
|
<h4><%= @proposal.question %></h4>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if @proposal.retired? %>
|
<% if @proposal.retired? %>
|
||||||
<div id="retired_explanation" class="callout">
|
<div id="retired_explanation" class="callout">
|
||||||
|
|||||||
Reference in New Issue
Block a user