2019-09-30 21:07:59 +05:30
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-storage-settings'), html: { class: 'fieldset-form' } do |f|
2018-05-09 12:01:36 +05:30
= form_errors(@application_setting)
%fieldset
.sub-section
2019-12-21 20:55:43 +05:30
%h4= _("Hashed repository storage paths")
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.form-check
2020-05-24 23:13:21 +05:30
= f.check_box :hashed_storage_enabled, class: 'form-check-input qa-hashed-storage-checkbox', disabled: @application_setting.hashed_storage_enabled?
2019-12-21 20:55:43 +05:30
= f.label :hashed_storage_enabled, _("Use hashed storage"), class: 'label-bold form-check-label'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2020-05-24 23:13:21 +05:30
= _("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. (Always enabled since 13.0)")
2019-12-21 20:55:43 +05:30
.sub-section
2020-04-22 19:07:51 +05:30
%h4= _("Storage nodes for new repositories")
2018-05-09 12:01:36 +05:30
.form-group
2019-12-21 20:55:43 +05:30
.form-text
%p.text-secondary
2020-07-28 23:09:34 +05:30
= _('Enter weights for storages for new repositories.')
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'), help_page_path('administration/repository_storage_paths')
2019-12-21 20:55:43 +05:30
.form-check
2021-04-17 20:07:23 +05:30
= f.fields_for :repository_storages_weighted, storage_weights do |storage_form|
- Gitlab.config.repositories.storages.keys.each do |storage|
= storage_form.text_field storage, class: 'form-text-input'
= storage_form.label storage, storage, class: 'label-bold form-check-label'
%br
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"