summaryrefslogtreecommitdiff
path: root/app/views/projects/empty.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 18:14:26 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 18:14:26 -0800
commit0b404c3599841fba3c118ecd6eb996b074fcfa11 (patch)
treef1fddf13c410f50b54fe779544972d18399a80fe /app/views/projects/empty.html.haml
parent630ff5744b58923890a269762bf3a3c9b1f6663f (diff)
downloadgitlab-ce-0b404c3599841fba3c118ecd6eb996b074fcfa11.tar.gz
Show no-ssh error message for project page
Diffstat (limited to 'app/views/projects/empty.html.haml')
-rw-r--r--app/views/projects/empty.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml
index 59f19c8b7a3..2e46de6bfe0 100644
--- a/app/views/projects/empty.html.haml
+++ b/app/views/projects/empty.html.haml
@@ -1,3 +1,6 @@
+- if current_user && can?(current_user, :download_code, @project)
+ = render 'shared/no_ssh'
+
= render "home_panel"
%div.git-empty