Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_repository_check.html.haml « application_settings « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6df1be9f6cb0f09b6697aaf3864a43191b1f3073 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
= 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
        .form-check
          = f.check_box :repository_checks_enabled, class: 'form-check-input'
          = f.label :repository_checks_enabled, class: 'form-check-label' do
            = _("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-text.text-muted
          = _("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?')
        = 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"

    .sub-section
      %h4= _("Housekeeping")
      .form-group
        .form-check
          = f.check_box :housekeeping_enabled, class: 'form-check-input'
          = f.label :housekeeping_enabled, class: 'form-check-label' do
            = _("Enable automatic repository housekeeping")
          .form-text.text-muted
            = _("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-check
          = f.check_box :housekeeping_bitmaps_enabled, class: 'form-check-input'
          = f.label :housekeeping_bitmaps_enabled, class: 'form-check-label' do
            = _("Enable Git pack file bitmap creation")
          .form-text.text-muted
            = _("Improves Git cloning performance.")
            = link_to s_('Learn more.'), help_page_path('administration/housekeeping.md', anchor: 'housekeeping-options'), target: '_blank', rel: 'noopener noreferrer'
      .form-group
        = 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'
        .form-text.text-muted
          = 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 }
      .form-group
        = f.label :housekeeping_full_repack_period, 'Full repack period', class: 'label-bold'
        = f.number_field :housekeeping_full_repack_period, class: 'form-control gl-form-input'
        .form-text.text-muted
          = 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 }
      .form-group
        = f.label :housekeeping_gc_period, _('Git GC period'), class: 'label-bold'
        = f.number_field :housekeeping_gc_period, class: 'form-control gl-form-input'
        .form-text.text-muted
          = 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 }

  = f.submit _('Save changes'), class: "gl-button btn btn-confirm"