edit.html.haml 2.28 KB
Newer Older
1
- breadcrumb_title "General Settings"
2
- @content_class = "limit-container-width" unless fluid_layout
3 4 5
- expanded = Rails.env.test?


6
%section.settings.gs-general.no-animate#js-general-settings{ class: ('expanded') }
7
  .settings-header
8 9
    %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only{ role: 'button' }
      = _('Naming, visibility')
10
    %button.btn.js-settings-toggle{ type: 'button' }
11
      = _('Collapse')
12
    %p
13
      = _('Update your group name, description, avatar, and visibility.')
14 15 16
  .settings-content
    = render 'groups/settings/general'

17
%section.settings.gs-permissions.no-animate#js-permissions-settings{ class: ('expanded' if expanded) }
18
  .settings-header
19 20
    %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only{ role: 'button' }
      = _('Permissions, LFS, 2FA')
21 22 23
    %button.btn.js-settings-toggle{ type: 'button' }
      = expanded ? _('Collapse') : _('Expand')
    %p
24
      = _('Advanced permissions, Large File Storage and Two-Factor authentication settings.')
25 26 27
  .settings-content
    = render 'groups/settings/permissions'

28
%section.settings.no-animate#js-badge-settings{ class: ('expanded' if expanded) }
29
  .settings-header
30
    %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only{ role: 'button' }
31 32 33 34 35 36 37 38 39
      = s_('GroupSettings|Badges')
    %button.btn.js-settings-toggle{ type: 'button' }
      = expanded ? 'Collapse' : 'Expand'
    %p
      = s_('GroupSettings|Customize your group badges.')
      = link_to s_('GroupSettings|Learn more about badges.'), help_page_path('user/project/badges')
  .settings-content
    = render 'shared/badges/badge_settings'

40
= render_if_exists 'groups/custom_project_templates_setting'
41 42
= render_if_exists 'groups/templates_setting', expanded: expanded

43
%section.settings.gs-advanced.no-animate#js-advanced-settings{ class: ('expanded' if expanded) }
44
  .settings-header
45 46
    %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only{ role: 'button' }
      = _('Path, transfer, remove')
47 48 49 50 51 52
    %button.btn.js-settings-toggle{ type: 'button' }
      = expanded ? _('Collapse') : _('Expand')
    %p
      = _('Perform advanced options such as changing path, transferring, or removing the group.')
  .settings-content
    = render 'groups/settings/advanced'
53

54
= render 'shared/confirm_modal', phrase: @group.path