Fix empty questions in new RFC UI

This commit is contained in:
Maximilian Grundke
2017-10-04 13:22:47 +02:00
parent 2806d9bf85
commit e7adb00dc1

View File

@ -29,7 +29,8 @@
<%= t('activerecord.attributes.request_for_comments.question')%>
</h5>
<div class="text">
<%= @request_for_comment.question or t('request_for_comments.no_question')%>
<% question = @request_for_comment.question %>
<%= question.nil? or question.empty? ? t('request_for_comments.no_question') : question %>
</div>
</div>