summaryrefslogtreecommitdiff
path: root/app/views/snippets/index.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-01-18 01:19:57 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-01-18 01:19:57 +0200
commitccfae827234a4b8acb86d1944b9b5b7bdd68481a (patch)
tree3d1e8bd2ffd0ad35c32320b9335a103fda5f7869 /app/views/snippets/index.html.haml
parentb7614c714eda948a2db5d7bf507e61e1e7b457da (diff)
downloadgitlab-ce-ccfae827234a4b8acb86d1944b9b5b7bdd68481a.tar.gz
project alert/error messages
Diffstat (limited to 'app/views/snippets/index.html.haml')
-rw-r--r--app/views/snippets/index.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/snippets/index.html.haml b/app/views/snippets/index.html.haml
index cdc3356299b..c7c4c6b1324 100644
--- a/app/views/snippets/index.html.haml
+++ b/app/views/snippets/index.html.haml
@@ -4,3 +4,9 @@
%div{ :class => "update-data ui-box ui-box-small ui-box-big" }
.data
= render @snippets.fresh
+- else
+ .notice_holder
+ %li Snippets do not exist yet.
+ - if can? current_user, :write_snippet, @project
+ %li You can add a new one by clicking on plus icon
+