summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Gliga <otzy_007@yahoo.com>2016-05-12 13:43:12 +0300
committerAndrei Gliga <otzy_007@yahoo.com>2016-05-12 13:44:46 +0300
commit260c88a75865a1b849a4bac8a14c897fbe522047 (patch)
treec32e0ee8b764fcd45843885c67cf6d2e1319da8d
parent6cdce04937837de8014b1c044c91ed5b32bdc90a (diff)
downloadgitlab-ce-260c88a75865a1b849a4bac8a14c897fbe522047.tar.gz
no need to define the help block since there's no help block
-rw-r--r--app/helpers/application_settings_helper.rb5
-rw-r--r--app/views/admin/application_settings/_form.html.haml2
2 files changed, 3 insertions, 4 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb
index 878b1b254ce..03080d25931 100644
--- a/app/helpers/application_settings_helper.rb
+++ b/app/helpers/application_settings_helper.rb
@@ -61,7 +61,7 @@ module ApplicationSettingsHelper
end
end
- def oauth_providers_checkboxes(help_block_id)
+ def oauth_providers_checkboxes
button_based_providers.map do |source|
disabled = current_application_settings.disabled_oauth_sign_in_sources.include?(source.to_s)
css_class = 'btn'
@@ -70,8 +70,7 @@ module ApplicationSettingsHelper
label_tag(checkbox_name, class: css_class) do
check_box_tag(checkbox_name, source, !disabled,
- autocomplete: 'off',
- 'aria-describedby' => help_block_id) + Gitlab::OAuth::Provider.label_for(source)
+ autocomplete: 'off') + Gitlab::OAuth::Provider.label_for(source)
end
end
end
diff --git a/app/views/admin/application_settings/_form.html.haml b/app/views/admin/application_settings/_form.html.haml
index 576509e3f2b..f7c799c968f 100644
--- a/app/views/admin/application_settings/_form.html.haml
+++ b/app/views/admin/application_settings/_form.html.haml
@@ -114,7 +114,7 @@
= f.label :enabled_oauth_sign_in_sources, 'Enabled OAuth Sign-In sources', class: 'control-label col-sm-2'
.col-sm-10
.btn-group{ data: { toggle: 'buttons' } }
- - oauth_providers_checkboxes('oauth-providers-help').each do |source|
+ - oauth_providers_checkboxes.each do |source|
= source
.form-group
= f.label :two_factor_authentication, 'Two-factor authentication', class: 'control-label col-sm-2'