Merge pull request #131 from openHPI/fix-empty-question-in-rfc

Fix empty questions in new RFC UI
This commit is contained in:
rteusner
2017-10-04 15:44:12 +02:00
committed by GitHub

View File

@ -29,7 +29,8 @@
<%= t('activerecord.attributes.request_for_comments.question')%> <%= t('activerecord.attributes.request_for_comments.question')%>
</h5> </h5>
<div class="text"> <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>
</div> </div>