diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb index bc196fb29180fa97a4ce40c1351d3bf8b2f127f8..4cbb7c54cb702231bb36307c6eeb172b57bf927b 100644 --- a/app/helpers/application_settings_helper.rb +++ b/app/helpers/application_settings_helper.rb @@ -47,12 +47,16 @@ module ApplicationSettingsHelper def enabled_project_tooltip(project, protocol) case protocol when 'ssh' - sanitize(ssh_clone_button(project), tags: %w(a), attributes: %w(id class title data-html data-container data-placement data-title data-original-title aria-describedby)) + sanitize_clone_button(ssh_clone_button(project)) else - sanitize(http_clone_button(project), tags: %w(a), attributes: %w(id class title data-html data-container data-placement data-title data-original-title aria-describedby)) + sanitize_clone_button(http_clone_button(project)) 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)