2019-02-20 16:56:19 +00:00
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-check-settings'), html: { class: 'fieldset-form' } do |f|
2018-03-30 08:26:04 +00:00
= form_errors(@application_setting)
%fieldset
.sub-section
2021-04-01 12:08:56 +00:00
%h4= _("Repository checks")
2018-06-13 07:40:55 +00:00
.form-group
.form-check
= f.check_box :repository_checks_enabled, class: 'form-check-input'
= f.label :repository_checks_enabled, class: 'form-check-label' do
2021-07-05 06:08:01 +00:00
= _("Enable repository checks")
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2021-07-09 15:09:47 +00:00
= html_escape(s_('Run %{code_start}git fsck%{code_end} periodically in all project and wiki repositories to look for silent disk corruption issues.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
2018-06-13 07:40:55 +00:00
.form-group
.form-text.text-muted
2021-07-05 06:08:01 +00:00
= _("If you get a lot of false alarms from repository checks, you can clear all repository check information from the database.")
2020-08-10 09:09:54 +00:00
- clear_repository_checks_link = _('Clear all repository checks')
2021-07-05 06:08:01 +00:00
- clear_repository_checks_message = _('This clears repository check states for all projects in the database and cannot be undone. Are you sure?')
2021-04-27 12:10:12 +00:00
= link_to clear_repository_checks_link, clear_repository_check_states_admin_application_settings_path, data: { confirm: clear_repository_checks_message }, method: :put, class: "gl-button btn btn-sm btn-danger gl-mt-3"
2018-03-30 08:26:04 +00:00
.sub-section
2021-04-01 12:08:56 +00:00
%h4= _("Housekeeping")
2018-06-13 07:40:55 +00:00
.form-group
.form-check
= f.check_box :housekeeping_enabled, class: 'form-check-input'
= f.label :housekeeping_enabled, class: 'form-check-label' do
2021-07-05 06:08:01 +00:00
= _("Enable automatic repository housekeeping")
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2021-07-05 06:08:01 +00:00
= _("Leaving this setting enabled is recommended.")
= link_to s_('Learn more.'), help_page_path('administration/housekeeping.md', anchor: 'housekeeping-options'), target: '_blank', rel: 'noopener noreferrer'
2018-06-13 07:40:55 +00:00
.form-check
= f.check_box :housekeeping_bitmaps_enabled, class: 'form-check-input'
= f.label :housekeeping_bitmaps_enabled, class: 'form-check-label' do
2021-04-01 12:08:56 +00:00
= _("Enable Git pack file bitmap creation")
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2021-07-05 06:08:01 +00:00
= _("Improves Git cloning performance.")
= link_to s_('Learn more.'), help_page_path('administration/housekeeping.md', anchor: 'housekeeping-options'), target: '_blank', rel: 'noopener noreferrer'
2018-06-13 07:40:55 +00:00
.form-group
2018-07-19 22:11:31 +00:00
= f.label :housekeeping_incremental_repack_period, 'Incremental repack period', class: 'label-bold'
2021-01-31 18:09:51 +00:00
= f.number_field :housekeeping_incremental_repack_period, class: 'form-control gl-form-input'
2018-06-13 07:40:55 +00:00
.form-text.text-muted
2021-07-09 15:09:47 +00:00
= html_escape(s_('Number of Git pushes after which an incremental %{code_start}git repack%{code_end} is run.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
2018-06-13 07:40:55 +00:00
.form-group
2018-07-19 22:11:31 +00:00
= f.label :housekeeping_full_repack_period, 'Full repack period', class: 'label-bold'
2021-01-31 18:09:51 +00:00
= f.number_field :housekeeping_full_repack_period, class: 'form-control gl-form-input'
2018-06-13 07:40:55 +00:00
.form-text.text-muted
2021-07-09 15:09:47 +00:00
= html_escape(s_('Number of Git pushes after which a full %{code_start}git repack%{code_end} is run.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
2018-06-13 07:40:55 +00:00
.form-group
2021-04-01 12:08:56 +00:00
= f.label :housekeeping_gc_period, _('Git GC period'), class: 'label-bold'
2021-01-31 18:09:51 +00:00
= f.number_field :housekeeping_gc_period, class: 'form-control gl-form-input'
2018-06-13 07:40:55 +00:00
.form-text.text-muted
2021-07-09 15:09:47 +00:00
= html_escape(s_('Number of Git pushes after which %{code_start}git gc%{code_end} is run.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
2018-03-30 08:26:04 +00:00
2021-03-09 15:08:59 +00:00
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"