1- breadcrumb_title _("General") 2- page_title _("General") 3- @content_class = "limit-container-width" unless fluid_layout 4 5%section.settings.as-visibility-access.no-animate#js-visibility-settings{ class: ('expanded' if expanded_by_default?) } 6 .settings-header 7 %h4 8 = _('Visibility and access controls') 9 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 10 = expanded_by_default? ? _('Collapse') : _('Expand') 11 %p 12 = _('Set default and restrict visibility levels. Configure import sources and git access protocol.') 13 .settings-content 14 = render 'visibility_and_access' 15 16%section.settings.as-account-limit.no-animate#js-account-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'account_and_limit_settings_content' } } 17 .settings-header 18 %h4 19 = _('Account and limit') 20 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 21 = expanded_by_default? ? _('Collapse') : _('Expand') 22 %p 23 = _('Set projects and maximum size limits, session duration, user options, and check feature availability for namespace plan.') 24 .settings-content 25 = render 'account_and_limit' 26 27%section.settings.as-diff-limits.no-animate#js-merge-request-settings{ class: ('expanded' if expanded_by_default?) } 28 .settings-header 29 %h4 30 = _('Diff limits') 31 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 32 = expanded_by_default? ? _('Collapse') : _('Expand') 33 %p 34 = _('Set size limits for displaying diffs in the browser.') 35 .settings-content 36 = render 'diff_limits' 37 38%section.settings.as-signup.no-animate#js-signup-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'sign_up_restrictions_settings_content' } } 39 .settings-header 40 %h4 41 = _('Sign-up restrictions') 42 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 43 = expanded_by_default? ? _('Collapse') : _('Expand') 44 %p 45 = _('Configure the way a user creates a new account.') 46 .settings-content 47 = render 'signup' 48 49%section.settings.as-signin.no-animate#js-signin-settings{ class: ('expanded' if expanded_by_default?) } 50 .settings-header 51 %h4 52 = _('Sign-in restrictions') 53 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 54 = expanded_by_default? ? _('Collapse') : _('Expand') 55 %p 56 = _('Set sign-in restrictions for all users.') 57 = link_to _('Learn more.'), help_page_path('user/admin_area/settings/sign_in_restrictions.md'), target: '_blank', rel: 'noopener noreferrer' 58 .settings-content 59 = render 'signin' 60 61%section.settings.as-terms.no-animate#js-terms-settings{ class: ('expanded' if expanded_by_default?) } 62 .settings-header 63 %h4 64 = _('Terms of Service and Privacy Policy') 65 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 66 = expanded_by_default? ? _('Collapse') : _('Expand') 67 %p 68 = _('Add a Terms of Service agreement and Privacy Policy for users of this GitLab instance.') 69 = link_to _('Learn more.'), help_page_path('user/admin_area/settings/terms.md'), target: '_blank', rel: 'noopener noreferrer' 70 .settings-content 71 = render 'terms' 72 73= render 'admin/application_settings/external_authorization_service_form', expanded: expanded_by_default? 74 75%section.settings.as-terminal.no-animate#js-terminal-settings{ class: ('expanded' if expanded_by_default?) } 76 .settings-header 77 %h4 78 = _('Web terminal') 79 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 80 = expanded_by_default? ? _('Collapse') : _('Expand') 81 %p 82 = _('Set the maximum session time for a web terminal.') 83 = 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' 84 .settings-content 85 = render 'terminal' 86 87%section.settings.no-animate#js-web-ide-settings{ class: ('expanded' if expanded_by_default?) } 88 .settings-header 89 %h4 90 = _('Web IDE') 91 %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } 92 = expanded_by_default? ? _('Collapse') : _('Expand') 93 %p 94 = _('Manage Web IDE features.') 95 .settings-content 96 = 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| 97 = form_errors(@application_setting) 98 99 %fieldset 100 .form-group 101 .form-check 102 = f.check_box :web_ide_clientside_preview_enabled, class: 'form-check-input' 103 = f.label :web_ide_clientside_preview_enabled, class: 'form-check-label' do 104 = s_('IDE|Live Preview') 105 %span.form-text.text-muted 106 - link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('user/project/web_ide/index', anchor: 'enable-live-preview') } 107 = 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 } 108 = f.submit _('Save changes'), class: "gl-button btn btn-confirm" 109 110= render_if_exists 'admin/application_settings/maintenance_mode_settings_form' 111= render 'admin/application_settings/gitpod' 112= render 'admin/application_settings/kroki' 113= render 'admin/application_settings/mailgun' 114= render 'admin/application_settings/plantuml' 115= render 'admin/application_settings/sourcegraph' 116= render_if_exists 'admin/application_settings/slack' 117= render 'admin/application_settings/third_party_offers' 118= render 'admin/application_settings/snowplow' 119= render 'admin/application_settings/eks' 120= render 'admin/application_settings/floc' 121