2019-02-20 16:56:19 +00:00
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-storage-settings'), html: { class: 'fieldset-form' } do |f|
2018-03-30 08:26:04 +00:00
= form_errors(@application_setting)
%fieldset
.sub-section
2019-10-09 18:06:58 +00:00
%h4= _("Hashed repository storage paths")
2018-06-13 07:40:55 +00:00
.form-group
.form-check
2020-05-15 21:08:21 +00:00
= f.check_box :hashed_storage_enabled, class: 'form-check-input qa-hashed-storage-checkbox', disabled: @application_setting.hashed_storage_enabled?
2019-10-09 18:06:58 +00:00
= f.label :hashed_storage_enabled, _("Use hashed storage"), class: 'label-bold form-check-label'
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2020-05-15 21:08:21 +00:00
= _("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-10-09 18:06:58 +00:00
.sub-section
2020-04-03 12:09:52 +00:00
%h4= _("Storage nodes for new repositories")
2018-06-13 07:40:55 +00:00
.form-group
2019-10-09 18:06:58 +00:00
.form-text
%p.text-secondary
2020-06-17 21:08:24 +00:00
= _('Enter weights for storages for new repositories.')
2019-10-09 18:06:58 +00:00
= link_to icon('question-circle'), help_page_path('administration/repository_storage_paths')
.form-check
2020-06-16 12:09:00 +00:00
- storage_weights.each do |attribute|
= f.text_field attribute[:name], class: 'form-text-input', value: attribute[:value]
= f.label attribute[:label], attribute[:label], class: 'label-bold form-check-label'
2019-10-09 18:06:58 +00:00
%br
2018-03-30 08:26:04 +00:00
2019-10-09 18:06:58 +00:00
= f.submit _('Save changes'), class: "btn btn-success qa-save-changes-button"