summaryrefslogtreecommitdiff
path: root/app/views/projects/show.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-13 13:03:27 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-13 13:03:27 +0200
commit219451241a92ff9e81dcb77914e6d659ea2f7376 (patch)
treec2b2a73c52a6f0675a4af7ab40d7d5dbbb757d40 /app/views/projects/show.html.haml
parent4ad61519f9f9cdc82b1ee6bd1ed92905692c7e7f (diff)
downloadgitlab-ce-219451241a92ff9e81dcb77914e6d659ea2f7376.tar.gz
Fix UI issue on project page with no ssh key message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index efa119edd5a..e95d987d74c 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -2,9 +2,10 @@
- if current_user
= auto_discovery_link_tag(:atom, namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), title: "#{@project.name} activity")
-- if current_user && can?(current_user, :download_code, @project)
- = render 'shared/no_ssh'
- = render 'shared/no_password'
+= content_for :flash_message do
+ - if current_user && can?(current_user, :download_code, @project)
+ = render 'shared/no_ssh'
+ = render 'shared/no_password'
- if prefer_readme?
= render 'projects/last_push'