Skip to content
Snippets Groups Projects
Verified Commit 21945124 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix UI issue on project page with no ssh key message

parent 4ad61519
Branches
Tags
1 merge request!1581Ui improvements
Loading
@@ -6,7 +6,7 @@
Loading
@@ -6,7 +6,7 @@
= brand_header_logo = brand_header_logo
.gitlab-text-container .gitlab-text-container
%h3 GitLab %h3 GitLab
- if defined?(sidebar) && sidebar - if defined?(sidebar) && sidebar
= render "layouts/nav/#{sidebar}" = render "layouts/nav/#{sidebar}"
- elsif current_user - elsif current_user
Loading
@@ -23,6 +23,7 @@
Loading
@@ -23,6 +23,7 @@
= current_user.username = current_user.username
.content-wrapper .content-wrapper
= render "layouts/flash" = render "layouts/flash"
= yield :flash_message
%div{ class: container_class } %div{ class: container_class }
.content .content
.clearfix .clearfix
Loading
Loading
Loading
@@ -2,9 +2,10 @@
Loading
@@ -2,9 +2,10 @@
- if current_user - 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") = 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) = content_for :flash_message do
= render 'shared/no_ssh' - if current_user && can?(current_user, :download_code, @project)
= render 'shared/no_password' = render 'shared/no_ssh'
= render 'shared/no_password'
   
- if prefer_readme? - if prefer_readme?
= render 'projects/last_push' = render 'projects/last_push'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment