17 lines
875 B
Text
17 lines
875 B
Text
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-mirror-settings') do |f|
|
|
= form_errors(@application_setting)
|
|
|
|
%fieldset
|
|
.form-group
|
|
= f.label :mirror_available, _('Enable mirror configuration'), class: 'label-bold'
|
|
.form-check
|
|
= f.check_box :mirror_available, class: 'form-check-input'
|
|
= f.label :mirror_available, class: 'form-check-label' do
|
|
= _('Allow repository mirroring to be configured by project maintainers')
|
|
%span.form-text.text-muted
|
|
= _('If disabled, only admins will be able to configure repository mirroring.')
|
|
= link_to icon('question-circle'), help_page_path('user/project/repository/repository_mirroring.md')
|
|
|
|
= render_if_exists 'admin/application_settings/mirror_settings', form: f
|
|
|
|
= f.submit _('Save changes'), class: "btn btn-success"
|