general.html.haml 4.11 KB
Newer Older
1 2
- breadcrumb_title _("General")
- 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 7
  .settings-header
    %h4
8
      = _('Visibility and access controls')
9
    %button.btn.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 14 15
  .settings-content
    = render 'visibility_and_access'

16
%section.settings.qa-account-and-limit-settings.as-account-limit.no-animate#js-account-settings{ class: ('expanded' if expanded_by_default?) }
17 18
  .settings-header
    %h4
19
      = _('Account and limit')
20
    %button.btn.js-settings-toggle{ type: 'button' }
21
      = expanded_by_default? ? _('Collapse') : _('Expand')
22
    %p
23
      = _('Session expiration, projects limit and attachment size.')
24 25 26
  .settings-content
    = render 'account_and_limit'

27 28 29 30 31 32 33 34 35 36 37
%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'

38
%section.settings.as-signup.no-animate#js-signup-settings{ class: ('expanded' if expanded_by_default?) }
39 40
  .settings-header
    %h4
41
      = _('Sign-up restrictions')
42
    %button.btn.js-settings-toggle{ type: 'button' }
43
      = expanded_by_default? ? _('Collapse') : _('Expand')
44
    %p
45
      = _('Configure the way a user creates a new account.')
46 47 48
  .settings-content
    = render 'signup'

49
%section.settings.as-signin.no-animate#js-signin-settings{ class: ('expanded' if expanded_by_default?) }
50 51
  .settings-header
    %h4
52
      = _('Sign-in restrictions')
53
    %button.btn.js-settings-toggle{ type: 'button' }
54
      = expanded_by_default? ? _('Collapse') : _('Expand')
55
    %p
56
      = _('Set requirements for a user to sign-in. Enable mandatory two-factor authentication.')
57 58 59
  .settings-content
    = render 'signin'

60
%section.settings.as-terms.no-animate#js-terms-settings{ class: ('expanded' if expanded_by_default?) }
61 62
  .settings-header
    %h4
63
      = _('Terms of Service and Privacy Policy')
64
    %button.btn.btn-default.js-settings-toggle{ type: 'button' }
65
      = expanded_by_default? ? _('Collapse') : _('Expand')
66
    %p
67
      = _('Include a Terms of Service agreement and Privacy Policy that all users must accept.')
68 69 70
  .settings-content
    = render 'terms'

71
= render 'admin/application_settings/external_authorization_service_form', expanded: expanded_by_default?
72

73
%section.settings.as-terminal.no-animate#js-terminal-settings{ class: ('expanded' if expanded_by_default?) }
74 75 76
  .settings-header
    %h4
      = _('Web terminal')
77
    %button.btn.btn-default.js-settings-toggle{ type: 'button' }
78
      = expanded_by_default? ? _('Collapse') : _('Expand')
79 80 81 82 83
    %p
      = _('Set max session time for web terminal.')
  .settings-content
    = render 'terminal'

84
%section.settings.no-animate#js-web-ide-settings{ class: ('expanded' if expanded_by_default?) }
Phil Hughes's avatar
Phil Hughes committed
85 86 87 88
  .settings-header
    %h4
      = _('Web IDE')
    %button.btn.btn-default.js-settings-toggle{ type: 'button' }
89
      = expanded_by_default? ? _('Collapse') : _('Expand')
Phil Hughes's avatar
Phil Hughes committed
90 91 92
    %p
      = _('Manage Web IDE features')
  .settings-content
93
    = form_for @application_setting, url: general_admin_application_settings_path(anchor: "#js-web-ide-settings"), html: { class: 'fieldset-form' } do |f|
Phil Hughes's avatar
Phil Hughes committed
94 95 96 97 98 99 100 101 102 103 104 105
      = 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
              = s_('IDE|Client side evaluation')
            %span.form-text.text-muted
              = s_('IDE|Allow live previews of JavaScript projects in the Web IDE using CodeSandbox client side evaluation.')

      = f.submit _('Save changes'), class: "btn btn-success"