2019-09-16 21:06:30 +00:00
- breadcrumb_title _("General")
- page_title _("General")
2018-03-22 17:50:46 +00:00
- @content_class = "limit-container-width" unless fluid_layout
2016-06-20 09:43:40 +00:00
2018-09-19 10:57:57 +00:00
%section.settings.as-visibility-access.no-animate#js-visibility-settings{ class: ('expanded' if expanded_by_default?) }
2018-03-22 17:50:46 +00:00
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-03-26 17:51:08 +00:00
= _('Visibility and access controls')
2022-06-09 18:08:13 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-19 10:57:57 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-03-22 17:50:46 +00:00
%p
2018-03-26 17:51:08 +00:00
= _('Set default and restrict visibility levels. Configure import sources and git access protocol.')
2018-03-22 17:50:46 +00:00
.settings-content
= render 'visibility_and_access'
2020-07-21 18:09:45 +00:00
%section.settings.as-account-limit.no-animate#js-account-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'account_and_limit_settings_content' } }
2018-03-22 17:50:46 +00:00
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-06-08 14:54:45 +00:00
= _('Account and limit')
2022-06-13 18:09:22 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-19 10:57:57 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-03-22 17:50:46 +00:00
%p
2020-01-30 12:08:54 +00:00
= _('Set projects and maximum size limits, session duration, user options, and check feature availability for namespace plan.')
2018-03-22 17:50:46 +00:00
.settings-content
= render 'account_and_limit'
2018-09-24 15:30:49 +00:00
%section.settings.as-diff-limits.no-animate#js-merge-request-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-09-24 15:30:49 +00:00
= _('Diff limits')
2022-06-13 18:09:22 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-24 15:30:49 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2021-06-14 12:10:13 +00:00
= _('Set size limits for displaying diffs in the browser.')
2018-09-24 15:30:49 +00:00
.settings-content
= render 'diff_limits'
2020-11-26 09:09:53 +00:00
%section.settings.as-signup.no-animate#js-signup-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'sign_up_restrictions_settings_content' } }
2018-03-22 17:50:46 +00:00
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-03-26 17:51:08 +00:00
= _('Sign-up restrictions')
2022-06-13 18:09:22 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-19 10:57:57 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-03-22 17:50:46 +00:00
%p
2018-03-26 17:51:08 +00:00
= _('Configure the way a user creates a new account.')
2018-03-22 17:50:46 +00:00
.settings-content
= render 'signup'
2018-09-19 10:57:57 +00:00
%section.settings.as-signin.no-animate#js-signin-settings{ class: ('expanded' if expanded_by_default?) }
2018-03-22 17:50:46 +00:00
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-03-26 17:51:08 +00:00
= _('Sign-in restrictions')
2022-06-13 18:09:22 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-19 10:57:57 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-03-22 17:50:46 +00:00
%p
2021-08-10 09:10:08 +00:00
= _('Set sign-in restrictions for all users.')
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/sign_in_restrictions.md'), target: '_blank', rel: 'noopener noreferrer'
2018-03-22 17:50:46 +00:00
.settings-content
= render 'signin'
2018-10-02 09:45:48 +00:00
%section.settings.as-terms.no-animate#js-terms-settings{ class: ('expanded' if expanded_by_default?) }
2018-04-24 16:28:04 +00:00
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-06-08 11:20:44 +00:00
= _('Terms of Service and Privacy Policy')
2022-06-13 18:09:22 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-19 10:57:57 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-04-24 16:28:04 +00:00
%p
2021-08-03 06:08:50 +00:00
= _('Add a Terms of Service agreement and Privacy Policy for users of this GitLab instance.')
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/terms.md'), target: '_blank', rel: 'noopener noreferrer'
2018-04-24 16:28:04 +00:00
.settings-content
= render 'terms'
2019-04-09 15:38:58 +00:00
= render 'admin/application_settings/external_authorization_service_form', expanded: expanded_by_default?
2018-09-14 15:43:16 +00:00
2018-09-19 10:57:57 +00:00
%section.settings.as-terminal.no-animate#js-terminal-settings{ class: ('expanded' if expanded_by_default?) }
2018-04-04 09:44:32 +00:00
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-04-04 09:44:32 +00:00
= _('Web terminal')
2022-06-13 18:09:22 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-19 10:57:57 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-04-04 09:44:32 +00:00
%p
2021-09-21 12:11:06 +00:00
= _('Set the maximum session time for a web terminal.')
2021-10-30 18:12:04 +00:00
= link_to _('How do I use a web terminal?'), help_page_path('ci/environments/index.md', anchor: 'web-terminals-deprecated'), target: '_blank', rel: 'noopener noreferrer'
2018-04-04 09:44:32 +00:00
.settings-content
= render 'terminal'
2018-09-19 10:57:57 +00:00
%section.settings.no-animate#js-web-ide-settings{ class: ('expanded' if expanded_by_default?) }
2018-06-13 16:06:35 +00:00
.settings-header
2022-07-06 18:08:29 +00:00
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-06-13 16:06:35 +00:00
= _('Web IDE')
2022-06-13 18:09:22 +00:00
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-09-19 10:57:57 +00:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-06-13 16:06:35 +00:00
%p
2021-05-27 15:10:39 +00:00
= _('Manage Web IDE features.')
2018-06-13 16:06:35 +00:00
.settings-content
2022-05-09 15:07:50 +00:00
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: "js-web-ide-settings"), html: { class: 'fieldset-form', id: 'web-ide-settings' } do |f|
2022-07-01 12:08:08 +00:00
= form_errors(@application_setting, pajamas_alert: true)
2018-06-13 16:06:35 +00:00
%fieldset
.form-group
2022-04-19 18:09:14 +00:00
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('user/project/web_ide/index', anchor: 'enable-live-preview') }
= f.gitlab_ui_checkbox_component :web_ide_clientside_preview_enabled,
s_('IDE|Live Preview'),
help_text: s_('Preview JavaScript projects in the Web IDE with CodeSandbox Live Preview. %{link_start}Learn more.%{link_end} ').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
2021-03-09 15:08:59 +00:00
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
2020-03-24 15:08:44 +00:00
2020-12-11 09:09:48 +00:00
= render_if_exists 'admin/application_settings/maintenance_mode_settings_form'
2020-09-16 18:09:47 +00:00
= render 'admin/application_settings/gitpod'
2020-11-28 21:09:37 +00:00
= render 'admin/application_settings/kroki'
2021-06-29 18:07:04 +00:00
= render 'admin/application_settings/mailgun'
2020-08-17 06:10:12 +00:00
= render 'admin/application_settings/plantuml'
= render 'admin/application_settings/sourcegraph'
= render_if_exists 'admin/application_settings/slack'
2022-05-19 12:08:42 +00:00
-# this partial is from JiHu, see details in https://jihulab.com/gitlab-cn/gitlab/-/merge_requests/417
= render_if_exists 'admin/application_settings/dingtalk_integration'
2022-06-30 21:09:49 +00:00
-# this partial is from JiHu, see details in https://jihulab.com/gitlab-cn/gitlab/-/merge_requests/640
= render_if_exists 'admin/application_settings/feishu_integration'
2020-08-17 06:10:12 +00:00
= render 'admin/application_settings/third_party_offers'
= render 'admin/application_settings/snowplow'
= render 'admin/application_settings/eks'
2021-05-07 09:10:27 +00:00
= render 'admin/application_settings/floc'
2022-05-06 12:09:05 +00:00
= render_if_exists 'admin/application_settings/add_license'
2022-06-09 18:08:13 +00:00
= render 'admin/application_settings/jira_connect_application_key' if Feature.enabled?(:jira_connect_oauth, current_user)