debian-mirror-gitlab/app/views/admin/application_settings/general.html.haml

127 lines
5.1 KiB
Text
Raw Normal View History

2019-12-04 20:38:33 +05:30
- breadcrumb_title _("General")
- page_title _("General")
2018-05-09 12:01:36 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2016-06-22 15:30:34 +05:30
2018-12-05 23:21:45 +05:30
%section.settings.as-visibility-access.no-animate#js-visibility-settings{ class: ('expanded' if expanded_by_default?) }
2018-05-09 12:01:36 +05:30
.settings-header
%h4
= _('Visibility and access controls')
%button.btn.js-settings-toggle{ type: 'button' }
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
= _('Set default and restrict visibility levels. Configure import sources and git access protocol.')
.settings-content
= render 'visibility_and_access'
2019-03-02 22:35:43 +05:30
%section.settings.qa-account-and-limit-settings.as-account-limit.no-animate#js-account-settings{ class: ('expanded' if expanded_by_default?) }
2018-05-09 12:01:36 +05:30
.settings-header
%h4
2018-11-08 19:23:39 +05:30
= _('Account and limit')
2018-05-09 12:01:36 +05:30
%button.btn.js-settings-toggle{ type: 'button' }
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
2020-03-13 15:44:24 +05:30
= _('Set projects and maximum size limits, session duration, user options, and check feature availability for namespace plan.')
2018-05-09 12:01:36 +05:30
.settings-content
= render 'account_and_limit'
2018-12-05 23:21:45 +05:30
%section.settings.as-diff-limits.no-animate#js-merge-request-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
%h4
= _('Diff limits')
%button.btn.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
= _('Diff content limits')
.settings-content
= render 'diff_limits'
%section.settings.as-signup.no-animate#js-signup-settings{ class: ('expanded' if expanded_by_default?) }
2018-05-09 12:01:36 +05:30
.settings-header
%h4
= _('Sign-up restrictions')
%button.btn.js-settings-toggle{ type: 'button' }
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
= _('Configure the way a user creates a new account.')
.settings-content
= render 'signup'
2018-12-05 23:21:45 +05:30
%section.settings.as-signin.no-animate#js-signin-settings{ class: ('expanded' if expanded_by_default?) }
2018-05-09 12:01:36 +05:30
.settings-header
%h4
= _('Sign-in restrictions')
%button.btn.js-settings-toggle{ type: 'button' }
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
= _('Set requirements for a user to sign-in. Enable mandatory two-factor authentication.')
.settings-content
= render 'signin'
2018-12-05 23:21:45 +05:30
%section.settings.as-terms.no-animate#js-terms-settings{ class: ('expanded' if expanded_by_default?) }
2018-10-15 14:42:47 +05:30
.settings-header
%h4
2018-11-08 19:23:39 +05:30
= _('Terms of Service and Privacy Policy')
2018-10-15 14:42:47 +05:30
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-10-15 14:42:47 +05:30
%p
2018-11-08 19:23:39 +05:30
= _('Include a Terms of Service agreement and Privacy Policy that all users must accept.')
2018-10-15 14:42:47 +05:30
.settings-content
= render 'terms'
2019-07-07 11:18:12 +05:30
= render 'admin/application_settings/external_authorization_service_form', expanded: expanded_by_default?
2018-05-09 12:01:36 +05:30
2018-12-05 23:21:45 +05:30
%section.settings.as-terminal.no-animate#js-terminal-settings{ class: ('expanded' if expanded_by_default?) }
2018-05-09 12:01:36 +05:30
.settings-header
%h4
= _('Web terminal')
2018-10-15 14:42:47 +05:30
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
= _('Set max session time for web terminal.')
.settings-content
= render 'terminal'
2018-12-05 23:21:45 +05:30
%section.settings.no-animate#js-web-ide-settings{ class: ('expanded' if expanded_by_default?) }
2018-11-18 11:00:15 +05:30
.settings-header
%h4
= _('Web IDE')
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-11-18 11:00:15 +05:30
%p
= _('Manage Web IDE features')
.settings-content
2019-12-04 20:38:33 +05:30
= form_for @application_setting, url: general_admin_application_settings_path(anchor: "#js-web-ide-settings"), html: { class: 'fieldset-form' } do |f|
2018-11-18 11:00:15 +05:30
= form_errors(@application_setting)
%fieldset
.form-group
.form-check
= f.check_box :web_ide_clientside_preview_enabled, class: 'form-check-input'
= f.label :web_ide_clientside_preview_enabled, class: 'form-check-label' do
2020-05-24 23:13:21 +05:30
= s_('IDE|Live Preview')
2018-11-18 11:00:15 +05:30
%span.form-text.text-muted
2020-05-24 23:13:21 +05:30
= s_('IDE|Allow live previews of JavaScript projects in the Web IDE using CodeSandbox Live Preview.')
2018-11-18 11:00:15 +05:30
= f.submit _('Save changes'), class: "btn btn-success"
2020-04-22 19:07:51 +05:30
- if Feature.enabled?(:maintenance_mode)
%section.settings.no-animate#js-maintenance-mode-toggle{ class: ('expanded' if expanded_by_default?) }
.settings-header
%h4
= _('Maintenance mode')
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
= _('Prevent users from performing write operations on GitLab while performing maintenance.')
.settings-content
#js-maintenance-mode-settings
- if Feature.enabled?(:instance_level_integrations)
= render_if_exists 'admin/application_settings/elasticsearch_form'
= render 'admin/application_settings/plantuml'
= render 'admin/application_settings/sourcegraph'
= render_if_exists 'admin/application_settings/slack'
= render 'admin/application_settings/third_party_offers'
= render 'admin/application_settings/snowplow'
= render 'admin/application_settings/eks'