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

_search_limits.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: b318f7e5a206ed98df993d31cccd94d0ca783ab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
= gitlab_ui_form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-search-limits-settings'), html: { class: 'fieldset-form' } do |f|
  = form_errors(@application_setting)

  %fieldset
    .form-group
      = f.label :search_rate_limit, _('Maximum number of requests per minute for an authenticated user'), class: 'label-bold'
      .form-text.gl-text-gray-600
        = _("Set this number to 0 to disable the limit.")
      = f.number_field :search_rate_limit, class: 'form-control gl-form-input'

    .form-group
      = f.label :search_rate_limit_unauthenticated, _('Maximum number of requests per minute for an unauthenticated IP address'), class: 'label-bold'
      = f.number_field :search_rate_limit_unauthenticated, class: 'form-control gl-form-input'

    .form-group
      = f.label :search_rate_limit_allowlist, _('Users to exclude from the rate limit'), class: 'label-bold'
      = f.text_area :search_rate_limit_allowlist_raw, class: 'form-control gl-form-input', rows: 5, aria: { describedBy: 'search-rate-limit-allowlist-field-description' }
      .form-text.text-muted{ id: 'search-rate-limit-allowlist-field-description' }
        = _('List of users who are allowed to exceed the rate limit. Example: username1, username2')


  = f.submit _('Save changes'), data: { qa_selector: 'save_changes_button' }, pajamas_button: true