summaryrefslogtreecommitdiff
path: root/app/helpers/button_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-11-24 19:32:06 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-11-24 19:32:06 -0500
commit1d80cd315e403e02f85a99c35eb9e83f4d829f8d (patch)
tree83f3e2f5dd705e40d0dbdb3f5f5d9fba16baeac6 /app/helpers/button_helper.rb
parent7dab8ed739359bc579d8bc4d3de61816993ca57d (diff)
downloadgitlab-ce-1d80cd315e403e02f85a99c35eb9e83f4d829f8d.tar.gz
Add clipboard button to project clone panel
Closes #3585
Diffstat (limited to 'app/helpers/button_helper.rb')
-rw-r--r--app/helpers/button_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb
index b9bb1ac8d88..313b6dde910 100644
--- a/app/helpers/button_helper.rb
+++ b/app/helpers/button_helper.rb
@@ -23,7 +23,7 @@ module ButtonHelper
end
def http_clone_button(project)
- klass = 'btn'
+ klass = 'btn js-protocol-switch'
klass << ' active' if default_clone_protocol == 'http'
klass << ' has_tooltip' if current_user.try(:require_password?)
@@ -41,7 +41,7 @@ module ButtonHelper
end
def ssh_clone_button(project)
- klass = 'btn'
+ klass = 'btn js-protocol-switch'
klass << ' active' if default_clone_protocol == 'ssh'
klass << ' has_tooltip' if current_user.try(:require_ssh_key?)