diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-29 23:25:04 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-06 00:54:22 +0300 |
commit | 29c50c53159333bdd124d4d3584ae826f49c28ad (patch) | |
tree | 4f8e56e18100c64186f0e819a5b0112effcaab27 /app/helpers/application_settings_helper.rb | |
parent | fbaabb3911c6fec25edc25bfffad94ae2a7c0e28 (diff) |
Default Git access protocol to `web`
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r-- | app/helpers/application_settings_helper.rb | 10 |
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) |