2021-04-15 09:09:03 +00:00
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-merge-request-settings'), html: { class: 'fieldset-form', id: 'merge-request-settings' } do |f|
|
2022-06-15 18:08:44 +00:00
|
|
|
= form_errors(@application_setting, pajamas_alert: true)
|
2018-09-24 15:30:49 +00:00
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2021-06-15 06:10:17 +00:00
|
|
|
= f.label :diff_max_patch_bytes, _('Maximum diff patch size (Bytes)'), class: 'label-light'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.number_field :diff_max_patch_bytes, class: 'form-control gl-form-input'
|
2018-09-24 15:30:49 +00:00
|
|
|
%span.form-text.text-muted
|
2021-06-15 06:10:17 +00:00
|
|
|
= _("Diff files surpassing this limit will be presented as 'too large' and won't be expandable.")
|
2018-09-24 15:30:49 +00:00
|
|
|
|
2020-09-11 18:08:42 +00:00
|
|
|
= link_to sprite_icon('question-o'),
|
2021-06-15 06:10:17 +00:00
|
|
|
help_page_path('user/admin_area/diff_limits',
|
|
|
|
anchor: 'diff-limits-administration')
|
|
|
|
|
|
|
|
= f.label :diff_max_files, _('Maximum files in a diff'), class: 'label-light'
|
|
|
|
= f.number_field :diff_max_files, class: 'form-control gl-form-input'
|
|
|
|
%span.form-text.text-muted
|
|
|
|
= _("Diff files surpassing this limit will be presented as 'too large' and won't be expandable.")
|
|
|
|
|
|
|
|
= link_to sprite_icon('question-o'),
|
|
|
|
help_page_path('user/admin_area/diff_limits',
|
|
|
|
anchor: 'diff-limits-administration')
|
|
|
|
|
|
|
|
= f.label :diff_max_lines, _('Maximum lines in a diff'), class: 'label-light'
|
|
|
|
= f.number_field :diff_max_lines, class: 'form-control gl-form-input'
|
|
|
|
%span.form-text.text-muted
|
|
|
|
= _("Diff files surpassing this limit will be presented as 'too large' and won't be expandable.")
|
|
|
|
|
|
|
|
= link_to sprite_icon('question-o'),
|
|
|
|
help_page_path('user/admin_area/diff_limits',
|
|
|
|
anchor: 'diff-limits-administration')
|
2021-03-09 15:08:59 +00:00
|
|
|
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm'
|