summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_repository_storage.html.haml
blob: c3ae39ddd48d36bd1573de6853c517059db25f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-storage-settings'), html: { class: 'fieldset-form' } do |f|
  = form_errors(@application_setting)

  %fieldset
    .sub-section
      %h4= _("Hashed repository storage paths")
      .form-group
        .form-check
          = f.check_box :hashed_storage_enabled, class: 'form-check-input qa-hashed-storage-checkbox'
          = f.label :hashed_storage_enabled, _("Use hashed storage"), class: 'label-bold form-check-label'
          .form-text.text-muted
            = _("Use hashed storage paths for newly created and renamed repositories. Enable immutable, hash-based paths and repository names to store repositories on disk. This prevents repositories from having to be moved or renamed when the Repository URL changes and may improve disk I/O performance.")
    .sub-section
      %h4= _("Storage nodes for new repositories")
      .form-group
        .form-text
          %p.text-secondary
            = _('Select the configured storage available for new repositories to be placed on.')
            = link_to icon('question-circle'), help_page_path('administration/repository_storage_paths')
        .form-check
          = f.collection_check_boxes :repository_storages, Gitlab.config.repositories.storages, :first, :first, include_hidden: false do |b|
            = b.check_box class: 'form-check-input'
            = b.label class: 'label-bold form-check-label'
            %br

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