summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-20 14:07:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-20 14:07:22 +0000
commit8b5b928b9236f09f029915d755bde23b3e8fabb5 (patch)
tree81ff8612a8c843629980c96bd4b616593f12f262 /app/views/common
parent0a38f329f8e46b9f9405c57e26835bc166b04987 (diff)
downloadredmine-8b5b928b9236f09f029915d755bde23b3e8fabb5.tar.gz
redmine-8b5b928b9236f09f029915d755bde23b3e8fabb5.zip
Do not show the paragraph if no message is set.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7876 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/error.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/common/error.html.erb b/app/views/common/error.html.erb
index 0367b47be..77ead9df4 100644
--- a/app/views/common/error.html.erb
+++ b/app/views/common/error.html.erb
@@ -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 %>