diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2015-04-25 23:01:52 -0600 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2015-04-26 07:48:19 -0600 |
commit | bd557e4b64a733f4be64b8cf36b8a551d8e8bab7 (patch) | |
tree | bbcfbe5bd73b157755254f9270c0601be4ab74f0 /app/views/admin | |
parent | 439b9f50af3168d33169a4cd25b59e45ea46dc62 (diff) | |
download | gitlab-ce-bd557e4b64a733f4be64b8cf36b8a551d8e8bab7.tar.gz |
Add new admin settings
Add new global application settings for default project and snippet
visibility levels.
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/application_settings/_form.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_form.html.haml b/app/views/admin/application_settings/_form.html.haml index 4f3565c67eb..98d3e00153d 100644 --- a/app/views/admin/application_settings/_form.html.haml +++ b/app/views/admin/application_settings/_form.html.haml @@ -43,6 +43,14 @@ .col-sm-10 = f.select :default_branch_protection, options_for_select(Gitlab::Access.protection_options, @application_setting.default_branch_protection), {}, class: 'form-control' .form-group + = f.label :default_project_visibility, class: 'control-label col-sm-2' + .col-sm-10 + = render('shared/visibility_radios', model_method: :default_project_visibility, form: f, selected_level: @application_setting.default_project_visibility, form_model: 'Project') + .form-group + = f.label :default_snippet_visibility, class: 'control-label col-sm-2' + .col-sm-10 + = render('shared/visibility_radios', model_method: :default_snippet_visibility, form: f, selected_level: @application_setting.default_snippet_visibility, form_model: 'Snippet') + .form-group = f.label :restricted_visibility_levels, class: 'control-label col-sm-2' .col-sm-10 - data_attrs = { toggle: 'buttons' } |