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

128 lines
6.9 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
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-05-09 12:01:36 +05:30
= _('Visibility and access controls')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
2022-08-13 15:12:31 +05:30
= _('Set visibility of project contents. Configure import sources and Git access protocols.')
2018-05-09 12:01:36 +05:30
.settings-content
= render 'visibility_and_access'
2022-10-11 01:57:18 +05:30
%section.settings.as-account-limit.no-animate#js-account-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'account_and_limit_settings_content', testid: 'account-limit' } }
2018-05-09 12:01:36 +05:30
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-08 19:23:39 +05:30
= _('Account and limit')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
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'
2022-11-25 23:54:43 +05:30
= render_if_exists 'admin/application_settings/free_user_cap'
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
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-12-05 23:21:45 +05:30
= _('Diff limits')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2021-09-04 01:27:46 +05:30
= _('Set size limits for displaying diffs in the browser.')
2018-12-05 23:21:45 +05:30
.settings-content
= render 'diff_limits'
2021-02-22 17:27:13 +05:30
%section.settings.as-signup.no-animate#js-signup-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'sign_up_restrictions_settings_content' } }
2018-05-09 12:01:36 +05:30
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-05-09 12:01:36 +05:30
= _('Sign-up restrictions')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
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
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-05-09 12:01:36 +05:30
= _('Sign-in restrictions')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
2021-10-27 15:23:28 +05:30
= _('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-05-09 12:01:36 +05:30
.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
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-08 19:23:39 +05:30
= _('Terms of Service and Privacy Policy')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-10-15 14:42:47 +05:30
%p
2021-10-27 15:23:28 +05:30
= _('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-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
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-05-09 12:01:36 +05:30
= _('Web terminal')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-05-09 12:01:36 +05:30
%p
2021-11-18 22:05:49 +05:30
= _('Set the maximum session time for a web terminal.')
2021-12-11 22:18:48 +05:30
= 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-05-09 12:01:36 +05:30
.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
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-18 11:00:15 +05:30
= _('Web IDE')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-11-18 11:00:15 +05:30
%p
2021-09-04 01:27:46 +05:30
= _('Manage Web IDE features.')
2018-11-18 11:00:15 +05:30
.settings-content
2022-07-16 23:28:13 +05:30
= 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-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2018-11-18 11:00:15 +05:30
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
- 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 }
2022-11-25 23:54:43 +05:30
= f.submit _('Save changes'), pajamas_button: true
2020-04-22 19:07:51 +05:30
2021-02-22 17:27:13 +05:30
= render_if_exists 'admin/application_settings/maintenance_mode_settings_form'
2020-11-24 15:15:51 +05:30
= render 'admin/application_settings/gitpod'
2021-02-22 17:27:13 +05:30
= render 'admin/application_settings/kroki'
2021-09-30 23:02:18 +05:30
= render 'admin/application_settings/mailgun'
2020-10-24 23:57:45 +05:30
= render 'admin/application_settings/plantuml'
= render 'admin/application_settings/sourcegraph'
= render_if_exists 'admin/application_settings/slack'
2022-07-23 23:45:48 +05:30
-# 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-08-13 15:12:31 +05:30
-# 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-10-24 23:57:45 +05:30
= render 'admin/application_settings/third_party_offers'
= render 'admin/application_settings/snowplow'
2023-01-13 00:05:48 +05:30
= render_if_exists 'admin/application_settings/product_analytics'
2022-08-13 15:12:31 +05:30
= render 'admin/application_settings/error_tracking' if Feature.enabled?(:gitlab_error_tracking)
2020-10-24 23:57:45 +05:30
= render 'admin/application_settings/eks'
2021-06-08 01:23:25 +05:30
= render 'admin/application_settings/floc'
2022-07-16 23:28:13 +05:30
= render_if_exists 'admin/application_settings/add_license'
2023-01-13 00:05:48 +05:30
= render 'admin/application_settings/jira_connect' if Feature.enabled?(:jira_connect_oauth_self_managed_setting, current_user)