summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_form.html.haml
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-06-15 17:30:55 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-07-05 16:54:22 -0500
commit512adc21feff5135de94d23ed6808296b365490a (patch)
treea1067fee6ea02eeae2f13750f17b64ff7544a9b0 /app/views/admin/application_settings/_form.html.haml
parent1141eaf5c83f927ccc064b6c5d162081fdd22894 (diff)
downloadgitlab-ce-512adc21feff5135de94d23ed6808296b365490a.tar.gz
Add setting that allows admins to choose which Git access protocols are enabled
Diffstat (limited to 'app/views/admin/application_settings/_form.html.haml')
-rw-r--r--app/views/admin/application_settings/_form.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_form.html.haml b/app/views/admin/application_settings/_form.html.haml
index c1f70bc1866..5647ac90a16 100644
--- a/app/views/admin/application_settings/_form.html.haml
+++ b/app/views/admin/application_settings/_form.html.haml
@@ -44,6 +44,12 @@
and GitLab.com
= link_to "(?)", help_page_path("integration", "gitlab")
.form-group
+ %label.control-label.col-sm-2 Enabled Git access protocols
+ .col-sm-10
+ = select(:application_setting, :enabled_git_access_protocols, [['Both SSH and HTTP', nil], ['Only SSH', 'ssh'], ['Only HTTP(S)', 'http']], {}, class: 'form-control')
+ %span.help-block#clone-protocol-help
+ Allow only the selected protocols to be used for Git access.
+ .form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :version_check_enabled do