]> source.dussan.org Git - redmine.git/commitdiff
Do not show the paragraph if no message is set.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Nov 2011 14:07:22 +0000 (14:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Nov 2011 14:07:22 +0000 (14:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7876 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/common/error.html.erb

index 0367b47beb24431adaecc4808b078310eac9ccad..77ead9df4281dbec9603908c5ac8988c7139b4ae 100644 (file)
@@ -1,6 +1,8 @@
 <h2><%=h @status %></h2>
 
-<p id="errorExplanation"><%=h @message %></p>
+<% if @message.present? %>
+  <p id="errorExplanation"><%=h @message %></p>
+<% end %>
 <p><a href="javascript:history.back()">Back</a></p>
 
 <% html_title @status %>