debian-mirror-gitlab/app/views/admin/application_settings/_diff_limits.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.6 KiB
Text
Raw Normal View History

2022-08-27 11:52:29 +05:30
= gitlab_ui_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-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2018-12-05 23:21:45 +05:30
%fieldset
.form-group
2021-09-04 01:27:46 +05:30
= f.label :diff_max_patch_bytes, _('Maximum diff patch size (Bytes)'), class: 'label-light'
2021-03-11 19:13:27 +05:30
= f.number_field :diff_max_patch_bytes, class: 'form-control gl-form-input'
2018-12-05 23:21:45 +05:30
%span.form-text.text-muted
2021-09-04 01:27:46 +05:30
= _("Diff files surpassing this limit will be presented as 'too large' and won't be expandable.")
2018-12-05 23:21:45 +05:30
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'),
2018-12-05 23:21:45 +05:30
help_page_path('user/admin_area/diff_limits',
2021-09-04 01:27:46 +05:30
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')
2022-08-27 11:52:29 +05:30
= f.submit _('Save changes'), pajamas_button: true