diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-12 12:19:23 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-12 12:19:23 +0400 |
commit | b983e9ef0a599c591606d30a450b9fe7e78c6c85 (patch) | |
tree | a312ca5346c0f15f4fcf5ca4f37b8be3a3d76c0f /app/views | |
parent | 986697a99bde07ea0d7e878f8618f801b6b81a8c (diff) |
Add ability to hide no ssh key message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/shared/_no_ssh.html.haml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/shared/_no_ssh.html.haml b/app/views/shared/_no_ssh.html.haml index 6d363807d62..2a365ce4f63 100644 --- a/app/views/shared/_no_ssh.html.haml +++ b/app/views/shared/_no_ssh.html.haml @@ -1,3 +1,6 @@ -- 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 +- if cookies[:hide_no_ssh_message].blank? && current_user.require_ssh_key? + .no-ssh-key-message + .container + 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 + = link_to '#', class: 'pull-right hide-no-ssh-message' do + %i.icon-remove |