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
|
2021-07-08 09:09:33 +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?
|
2021-07-08 09:09:33 +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
|
2021-07-08 09:09:33 +00:00
|
|
|
= _('Use hashed storage paths for newly created and renamed repositories. Always enabled since 13.0.')
|
|
|
|
= link_to s_('Learn more.'), help_page_path('administration/repository_storage_types.md', anchor: 'hashed-storage'), target: '_blank', rel: 'noopener noreferrer'
|
|
|
|
|
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
|
2021-07-08 09:09:33 +00:00
|
|
|
- weights_link_url = help_page_path('administration/repository_storage_paths.md', anchor: 'configure-where-new-repositories-are-stored')
|
|
|
|
- weights_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: weights_link_url }
|
|
|
|
= html_escape(s_('Enter %{weights_link_start}weights%{weights_link_end} for storages for new repositories. Configured storages appear below.')) % { weights_link_start: weights_link_start, weights_link_end: '</a>'.html_safe }
|
|
|
|
= link_to s_('Learn more.'), help_page_path('administration/repository_storage_paths.md'), target: '_blank', rel: 'noopener noreferrer'
|
2019-10-09 18:06:58 +00:00
|
|
|
.form-check
|
2021-03-11 15:09:10 +00:00
|
|
|
= 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
|
2021-03-09 15:08:59 +00:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|