2018-03-22 17:50:46 +00:00
|
|
|
- breadcrumb_title "Settings"
|
2015-04-30 17:06:18 +00:00
|
|
|
- page_title "Settings"
|
2018-03-22 17:50:46 +00:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
|
|
|
- expanded = Rails.env.test?
|
2016-06-20 09:43:40 +00:00
|
|
|
|
2018-03-26 17:03:34 +00:00
|
|
|
%section.settings.as-visibility-access.no-animate#js-visibility-settings{ class: ('expanded' if expanded) }
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-header
|
|
|
|
%h4
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Visibility and access controls')
|
2018-03-22 17:50:46 +00:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%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'
|
|
|
|
|
2018-03-26 17:03:34 +00:00
|
|
|
%section.settings.as-account-limit.no-animate#js-account-settings{ class: ('expanded' if expanded) }
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-header
|
|
|
|
%h4
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Account and limit settings')
|
2018-03-22 17:50:46 +00:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%p
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Session expiration, projects limit and attachment size.')
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-content
|
|
|
|
= render 'account_and_limit'
|
|
|
|
|
2018-03-26 17:03:34 +00:00
|
|
|
%section.settings.as-signup.no-animate#js-signup-settings{ class: ('expanded' if expanded) }
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-header
|
|
|
|
%h4
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Sign-up restrictions')
|
2018-03-22 17:50:46 +00:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%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-03-26 17:03:34 +00:00
|
|
|
%section.settings.as-signin.no-animate#js-signin-settings{ class: ('expanded' if expanded) }
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-header
|
|
|
|
%h4
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Sign-in restrictions')
|
2018-03-22 17:50:46 +00:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%p
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Set requirements for a user to sign-in. Enable mandatory two-factor authentication.')
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-content
|
|
|
|
= render 'signin'
|
|
|
|
|
2018-03-26 17:03:34 +00:00
|
|
|
%section.settings.as-help-page.no-animate#js-help-settings{ class: ('expanded' if expanded) }
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-header
|
|
|
|
%h4
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Help page')
|
2018-03-22 17:50:46 +00:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%p
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Help page text and support page url.')
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-content
|
|
|
|
= render 'help_page'
|
|
|
|
|
2018-03-26 17:03:34 +00:00
|
|
|
%section.settings.as-pages.no-animate#js-pages-settings{ class: ('expanded' if expanded) }
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-header
|
|
|
|
%h4
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Pages')
|
2018-03-22 17:50:46 +00:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%p
|
2018-03-26 17:51:08 +00:00
|
|
|
= _('Size and domain settings for static websites')
|
2018-03-22 17:50:46 +00:00
|
|
|
.settings-content
|
|
|
|
= render 'pages'
|
|
|
|
|
|
|
|
.prepend-top-20
|
|
|
|
= render 'form'
|