summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_repository_storage.html.haml
blob: ac31977e1a98fb174f54cef7cea31abb24d40d44 (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
55
56
57
58
= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f|
  = form_errors(@application_setting)

  %fieldset
    .sub-section
      .form-group
        .col-sm-offset-2.col-sm-10
          .checkbox
            = f.label :hashed_storage_enabled do
              = f.check_box :hashed_storage_enabled
              Create new projects using hashed storage paths
            .help-block
              Enable immutable, hash-based paths and repository names to store repositories on disk. This prevents
              repositories from having to be moved or renamed when the Project URL changes and may improve disk I/O performance.
              %em (EXPERIMENTAL)
      .form-group
        = f.label :repository_storages, 'Storage paths for new projects', class: 'control-label col-sm-2'
        .col-sm-10
          = f.select :repository_storages, repository_storages_options_for_select(@application_setting.repository_storages),
            {include_hidden: false}, multiple: true, class: 'form-control'
          .help-block
            Manage repository storage paths. Learn more in the
            = succeed "." do
              = link_to "repository storages documentation", help_page_path("administration/repository_storages")
    .sub-section
      %h4 Circuit breaker
      .form-group
        = f.label :circuitbreaker_check_interval, _('Check interval'), class: 'control-label col-sm-2'
        .col-sm-10
          = f.number_field :circuitbreaker_check_interval, class: 'form-control'
          .help-block
            = circuitbreaker_check_interval_help_text
      .form-group
        = f.label :circuitbreaker_access_retries, _('Number of access attempts'), class: 'control-label col-sm-2'
        .col-sm-10
          = f.number_field :circuitbreaker_access_retries, class: 'form-control'
          .help-block
            = circuitbreaker_access_retries_help_text
      .form-group
        = f.label :circuitbreaker_storage_timeout, _('Seconds to wait for a storage access attempt'), class: 'control-label col-sm-2'
        .col-sm-10
          = f.number_field :circuitbreaker_storage_timeout, class: 'form-control'
          .help-block
            = circuitbreaker_storage_timeout_help_text
      .form-group
        = f.label :circuitbreaker_failure_count_threshold, _('Maximum git storage failures'), class: 'control-label col-sm-2'
        .col-sm-10
          = f.number_field :circuitbreaker_failure_count_threshold, class: 'form-control'
          .help-block
            = circuitbreaker_failure_count_help_text
      .form-group
        = f.label :circuitbreaker_failure_reset_time, _('Seconds before reseting failure information'), class: 'control-label col-sm-2'
        .col-sm-10
          = f.number_field :circuitbreaker_failure_reset_time, class: 'form-control'
          .help-block
            = circuitbreaker_failure_reset_time_help_text

  = f.submit 'Save changes', class: "btn btn-success"