Commit 0be60332 authored by Jose Vargas's avatar Jose Vargas Committed by Jose Ivan Vargas

Migrate checkbox for performance optimization settings

Changelog: changed
parent c2737699
= form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-performance-settings'), html: { class: 'fieldset-form' } do |f| = gitlab_ui_form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-performance-settings'), html: { class: 'fieldset-form' } do |f|
= form_errors(@application_setting) = form_errors(@application_setting)
%fieldset %fieldset
.form-group .form-group
.form-check - help_link = help_page_path('administration/operations/fast_ssh_key_lookup')
= f.check_box :authorized_keys_enabled, class: 'form-check-input' - help_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_link }
= f.label :authorized_keys_enabled, class: 'form-check-label' do = f.gitlab_ui_checkbox_component :authorized_keys_enabled, _('Use authorized_keys file to authenticate SSH keys'),
= _('Use authorized_keys file to authenticate SSH keys') help_text: _('Authenticate user SSH keys without requiring additional configuration. Performance of GitLab can be improved by using the GitLab database instead. %{link_start}How do I configure authentication using the GitLab database? %{link_end}').html_safe % { link_start: help_link_start, link_end: '</a>'.html_safe}
.form-text.text-muted
= _('Authenticate user SSH keys without requiring additional configuration. Performance of GitLab can be improved by using the GitLab database instead.')
= link_to _('How do I configure authentication using the GitLab database?'), help_page_path('administration/operations/fast_ssh_key_lookup'), target: '_blank', rel: 'noopener noreferrer'
.form-group .form-group
= f.label :raw_blob_request_limit, _('Raw blob request rate limit per minute'), class: 'label-bold' = f.label :raw_blob_request_limit, _('Raw blob request rate limit per minute'), class: 'label-bold'
= f.number_field :raw_blob_request_limit, class: 'form-control gl-form-input' = f.number_field :raw_blob_request_limit, class: 'form-control gl-form-input'
......
...@@ -5224,7 +5224,7 @@ msgstr "" ...@@ -5224,7 +5224,7 @@ msgstr ""
msgid "Authenticate" msgid "Authenticate"
msgstr "" msgstr ""
msgid "Authenticate user SSH keys without requiring additional configuration. Performance of GitLab can be improved by using the GitLab database instead." msgid "Authenticate user SSH keys without requiring additional configuration. Performance of GitLab can be improved by using the GitLab database instead. %{link_start}How do I configure authentication using the GitLab database? %{link_end}"
msgstr "" msgstr ""
msgid "Authenticate with GitHub" msgid "Authenticate with GitHub"
...@@ -18680,9 +18680,6 @@ msgstr "" ...@@ -18680,9 +18680,6 @@ msgstr ""
msgid "How do I configure Akismet?" msgid "How do I configure Akismet?"
msgstr "" msgstr ""
msgid "How do I configure authentication using the GitLab database?"
msgstr ""
msgid "How do I configure it?" msgid "How do I configure it?"
msgstr "" msgstr ""
......
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