Commit 8b5913e6 authored by Sean McGivern's avatar Sean McGivern

Merge branch...

Merge branch '358306-replace-generic-checkbox-with-gitlab-ui-styled-checkbox-in-app-views-admin' into 'master'

Replace generic checkbox with GitLab UI styled checkbox in app/views/admin/application_settings/_repository_check.html.haml

See merge request gitlab-org/gitlab!84819
parents 26bc5803 c640c44f
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-check-settings'), html: { class: 'fieldset-form' } do |f| = gitlab_ui_form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-check-settings'), html: { class: 'fieldset-form' } do |f|
= form_errors(@application_setting) = form_errors(@application_setting)
%fieldset %fieldset
.sub-section .sub-section
%h4= _("Repository checks") %h4= _("Repository checks")
.form-group .form-group
.form-check = f.gitlab_ui_checkbox_component :repository_checks_enabled,
= f.check_box :repository_checks_enabled, class: 'form-check-input' _("Enable repository checks"),
= f.label :repository_checks_enabled, class: 'form-check-label' do help_text: 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 }
= _("Enable repository checks")
.form-text.text-muted
= 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 }
.form-group .form-group
.form-text.text-muted .form-text.text-muted
= _("If you get a lot of false alarms from repository checks, you can clear all repository check information from the database.") = _("If you get a lot of false alarms from repository checks, you can clear all repository check information from the database.")
...@@ -21,13 +18,11 @@ ...@@ -21,13 +18,11 @@
.sub-section .sub-section
%h4= _("Housekeeping") %h4= _("Housekeeping")
.form-group .form-group
.form-check - help_text = _("Leaving this setting enabled is recommended.")
= f.check_box :housekeeping_enabled, class: 'form-check-input' - help_link = link_to s_('Learn more.'), help_page_path('administration/housekeeping.md', anchor: 'housekeeping-options'), target: '_blank', rel: 'noopener noreferrer'
= f.label :housekeeping_enabled, class: 'form-check-label' do = f.gitlab_ui_checkbox_component :housekeeping_enabled,
= _("Enable automatic repository housekeeping") _("Enable automatic repository housekeeping"),
.form-text.text-muted help_text: '%{help_text} %{help_link}'.html_safe % { help_text: help_text, help_link: help_link }
= _("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'
.form-group .form-group
= f.label :housekeeping_incremental_repack_period, 'Incremental repack period', class: 'label-bold' = f.label :housekeeping_incremental_repack_period, 'Incremental repack period', class: 'label-bold'
= f.number_field :housekeeping_incremental_repack_period, class: 'form-control gl-form-input' = f.number_field :housekeeping_incremental_repack_period, class: 'form-control gl-form-input'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment