File: _repository_check.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (37 lines) | stat: -rw-r--r-- 2,660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
= 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)

  %fieldset
    .sub-section
      %h4= _("Repository checks")
      .form-group
        = f.gitlab_ui_checkbox_component :repository_checks_enabled,
          _("Enable repository checks"),
          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 }
      .form-group
        .form-text.gl-text-subtle
          = _("If you get a lot of false alarms from repository checks, you can clear all repository check information from the database.")
          - clear_repository_checks_link = _('Clear all repository checks')
          - clear_repository_checks_message = _('This clears repository check states for all projects in the database and cannot be undone. Are you sure?')
        = render Pajamas::ButtonComponent.new(variant: :danger, href: clear_repository_check_states_admin_application_settings_path, method: :put, button_options: { class: 'btn-sm gl-mt-3', data: { confirm: clear_repository_checks_message, confirm_btn_variant: 'danger' }, aria: { label: _('Clear repository checks') } }) do
          = clear_repository_checks_link


    .sub-section
      %h4= _("Housekeeping")
      .form-group
        - help_text = _("Run housekeeping tasks to automatically optimize Git repositories. Disabling this option will cause performance to degenerate over time.")
        - help_link = link_to _('Learn more.'), help_page_path('administration/housekeeping.md', anchor: 'heuristical-housekeeping'), target: '_blank', rel: 'noopener noreferrer'
        = f.gitlab_ui_checkbox_component :housekeeping_enabled,
          _("Enable automatic repository housekeeping"),
          help_text: '%{help_text} %{help_link}'.html_safe % { help_text: help_text, help_link: help_link }
      .form-group
        = f.label :housekeeping_optimize_repository_period, _('Optimize repository period'), class: 'label-bold'
        = f.number_field :housekeeping_optimize_repository_period, class: 'form-control gl-form-input'
        .form-text.gl-text-subtle
          = _('Number of Git pushes after which Gitaly is asked to optimize a repository.')
    .sub-section
      %h4= s_("AdminSettings|Inactive project deletion")
      .js-inactive-project-deletion-form{ data: inactive_projects_deletion_data(@application_setting) }

  = f.submit _('Save changes'), pajamas_button: true