From 268b723f3acc3eb2df3303f795acf2517364fdd0 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Sat, 30 Apr 2016 14:02:49 +0200 Subject: [PATCH] Fallback for no question asked --- app/views/request_for_comments/show.html.erb | 8 +++++++- config/locales/de.yml | 1 + config/locales/en.yml | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index f325f3f2..e276fec4 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -14,7 +14,13 @@ %> <%= user %> | <%= @request_for_comment.requested_at %>

-
<%=t('activerecord.attributes.request_for_comments.question')%>: "<%= @request_for_comment.question %>"
+
+ <% if @request_for_comment.question %> + <%= t('activerecord.attributes.request_for_comments.question')%>: "<%= @request_for_comment.question %>" + <% else %> + <%= t('request_for_comments.no_question') %> + <% end %> +