summaryrefslogtreecommitdiff
path: root/app/helpers/application_settings_helper.rb
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-06-29 15:25:04 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-07-05 16:54:22 -0500
commit29c50c53159333bdd124d4d3584ae826f49c28ad (patch)
tree4f8e56e18100c64186f0e819a5b0112effcaab27 /app/helpers/application_settings_helper.rb
parentfbaabb3911c6fec25edc25bfffad94ae2a7c0e28 (diff)
downloadgitlab-ce-29c50c53159333bdd124d4d3584ae826f49c28ad.tar.gz
Default Git access protocol to `web`
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r--app/helpers/application_settings_helper.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb
index 6b0dde5dfe6..92166461462 100644
--- a/app/helpers/application_settings_helper.rb
+++ b/app/helpers/application_settings_helper.rb
@@ -44,19 +44,15 @@ module ApplicationSettingsHelper
end
end
- def enabled_project_tooltip(project, protocol)
+ def enabled_project_button(project, protocol)
case protocol
when 'ssh'
- sanitize_clone_button(ssh_clone_button(project, 'bottom'))
+ ssh_clone_button(project, 'bottom', false)
else
- sanitize_clone_button(http_clone_button(project, 'bottom'))
+ http_clone_button(project, 'bottom', false)
end
end
- def sanitize_clone_button(input)
- sanitize(input, tags: %w(a), attributes: %w(id class title data-html data-container data-placement data-title data-original-title aria-describedby))
- end
-
# Return a group of checkboxes that use Bootstrap's button plugin for a
# toggle button effect.
def restricted_level_checkboxes(help_block_id)