diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml
index 2266eb804cf..9f7405c74b3 100644
--- a/app/views/admin/projects/show.html.haml
+++ b/app/views/admin/projects/show.html.haml
@@ -1,4 +1,5 @@
-%p#notice= notice
+- unless notice.nil?
+ %p#notice= notice
#infoblock
%h2= @admin_project.name
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index dc7e21d05be..4605fcb91aa 100644
--- a/app/views/admin/users/show.html.haml
+++ b/app/views/admin/users/show.html.haml
@@ -1,4 +1,5 @@
-%p#notice= notice
+- unless notice.nil?
+ %p#notice= notice
#infoblock
%p