summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorDrew Blessing <drew.blessing@buckle.com>2013-12-14 19:28:17 -0600
committerDrew Blessing <drew.blessing@buckle.com>2013-12-14 20:21:12 -0600
commitd9b5777db182ba3ee2341b19246feba86adb5708 (patch)
treef3fbb8540c7c9a121b266471e9b4b61b9b6be554 /app/views/shared
parentd476ac7d41f117ad9cf612e99216a4e7eaa04fb6 (diff)
downloadgitlab-ce-d9b5777db182ba3ee2341b19246feba86adb5708.tar.gz
Allow user to hide the message to add an ssh key permanently
Favor links instead of buttons Remove unnecessary class Remove extra space
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_no_ssh.html.haml8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/shared/_no_ssh.html.haml b/app/views/shared/_no_ssh.html.haml
index 2a365ce4f63..077e6c6a808 100644
--- a/app/views/shared/_no_ssh.html.haml
+++ b/app/views/shared/_no_ssh.html.haml
@@ -1,6 +1,8 @@
-- if cookies[:hide_no_ssh_message].blank? && current_user.require_ssh_key?
+- if cookies[:hide_no_ssh_message].blank? && current_user.require_ssh_key? && !current_user.hide_no_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
+ %div.pull-right
+ = link_to "Don't show again", profile_path(user: {hide_no_ssh_key: true}), method: :put, class: 'hide-no-ssh-message', remote: true
+ |
+ = link_to 'Remind later', '#', class: 'hide-no-ssh-message'