From 0175e665893ca8f8fd660ff55841e95c02fcb987 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 10 Aug 2013 21:20:03 +0300 Subject: hide no-ssh message if notice or alert present --- app/views/shared/_no_ssh.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/shared/_no_ssh.html.haml') diff --git a/app/views/shared/_no_ssh.html.haml b/app/views/shared/_no_ssh.html.haml index 82bf00aa280..6d363807d62 100644 --- a/app/views/shared/_no_ssh.html.haml +++ b/app/views/shared/_no_ssh.html.haml @@ -1,3 +1,3 @@ -- if current_user.require_ssh_key? +- if current_user.require_ssh_key? && alert.blank? && notice.blank? %p.error-message.centered You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_profile_key_path} to your profile -- cgit v1.2.3