Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)