Merge pull request #131 from openHPI/fix-empty-question-in-rfc
Fix empty questions in new RFC UI
This commit is contained in:
@ -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>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user