2018-08-06 05:09:07 +00:00
|
|
|
= form_for @application_setting, url: admin_application_settings_path(anchor: 'js-account-settings'), html: { class: 'fieldset-form' } do |f|
|
2018-03-22 17:50:46 +00:00
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
2018-03-26 18:56:33 +00:00
|
|
|
%fieldset
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :gravatar_enabled, class: 'form-check-input'
|
|
|
|
= f.label :gravatar_enabled, class: 'form-check-label' do
|
2019-03-14 19:13:35 +00:00
|
|
|
= _('Gravatar enabled')
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :default_projects_limit, class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
= f.number_field :default_projects_limit, class: 'form-control'
|
|
|
|
.form-group
|
2019-03-14 19:13:35 +00:00
|
|
|
= f.label :max_attachment_size, _('Maximum attachment size (MB)'), class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
= f.number_field :max_attachment_size, class: 'form-control'
|
2019-03-14 19:13:35 +00:00
|
|
|
|
|
|
|
= render_if_exists 'admin/application_settings/repository_size_limit_setting', form: f
|
|
|
|
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2019-03-14 19:13:35 +00:00
|
|
|
= f.label :receive_max_input_size, _('Maximum push size (MB)'), class: 'label-light'
|
2019-02-01 14:38:07 +00:00
|
|
|
= f.number_field :receive_max_input_size, class: 'form-control qa-receive-max-input-size-field'
|
2018-08-01 14:47:14 +00:00
|
|
|
.form-group
|
2019-03-14 19:13:35 +00:00
|
|
|
= f.label :session_expire_delay, _('Session duration (minutes)'), class: 'label-light'
|
2018-06-13 07:40:55 +00:00
|
|
|
= f.number_field :session_expire_delay, class: 'form-control'
|
2019-03-14 19:13:35 +00:00
|
|
|
%span.form-text.text-muted#session_expire_delay_help_block= _('GitLab restart is required to apply changes')
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2019-03-14 19:13:35 +00:00
|
|
|
= f.label :user_oauth_applications, _('User OAuth applications'), class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-check
|
|
|
|
= f.check_box :user_oauth_applications, class: 'form-check-input'
|
|
|
|
= f.label :user_oauth_applications, class: 'form-check-label' do
|
2019-03-14 19:13:35 +00:00
|
|
|
= _('Allow users to register any application to use GitLab as an OAuth provider')
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2019-03-14 19:13:35 +00:00
|
|
|
= f.label :user_default_external, _('New users set to external'), class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-check
|
|
|
|
= f.check_box :user_default_external, class: 'form-check-input'
|
|
|
|
= f.label :user_default_external, class: 'form-check-label' do
|
2019-03-14 19:13:35 +00:00
|
|
|
= _('Newly registered users will by default be external')
|
2018-08-30 12:53:06 +00:00
|
|
|
.prepend-top-10
|
|
|
|
= _('Internal users')
|
|
|
|
= f.text_field :user_default_internal_regex, placeholder: _('Regex pattern'), class: 'form-control prepend-top-5'
|
|
|
|
.help-block
|
|
|
|
= _('Specify an e-mail address regex pattern to identify default internal users.')
|
|
|
|
= link_to _('More information'), help_page_path('user/permissions', anchor: 'external-users-permissions'),
|
|
|
|
target: '_blank'
|
2018-08-03 20:52:01 +00:00
|
|
|
.form-group
|
2019-03-14 19:13:35 +00:00
|
|
|
= f.label :user_show_add_ssh_key_message, _('Prompt users to upload SSH keys'), class: 'label-bold'
|
2018-08-03 20:52:01 +00:00
|
|
|
.form-check
|
|
|
|
= f.check_box :user_show_add_ssh_key_message, class: 'form-check-input'
|
|
|
|
= f.label :user_show_add_ssh_key_message, class: 'form-check-label' do
|
2019-03-14 19:13:35 +00:00
|
|
|
= _("Inform users without uploaded SSH keys that they can't push over SSH until one is added")
|
|
|
|
|
|
|
|
= render_if_exists 'admin/application_settings/availability_on_namespace_setting', form: f
|
2018-03-22 17:50:46 +00:00
|
|
|
|
2019-03-14 19:13:35 +00:00
|
|
|
= f.submit _('Save changes'), class: 'btn btn-success qa-save-changes-button'
|