2021-01-29 00:20:46 +05:30
- return unless show_registration_enabled_user_callout?
2023-03-04 22:38:38 +05:30
= render Pajamas::AlertComponent.new(title: _('Check your sign-up restrictions'),
2021-09-04 01:27:46 +05:30
variant: :warning,
2022-07-23 23:45:48 +05:30
alert_options: { class: 'js-registration-enabled-callout',
data: { feature_id: Users::CalloutsHelper::REGISTRATION_ENABLED_CALLOUT,
dismiss_endpoint: callouts_path }},
close_button_options: { data: { testid: 'close-registration-enabled-callout' }}) do |c|
2022-07-16 23:28:13 +05:30
= c.body do
2023-03-04 22:38:38 +05:30
= _("Your GitLab instance allows anyone to register for an account, which is a security risk on public-facing GitLab instances. You should deactivate new sign ups if public users aren't expected to register for an account.")
2022-07-16 23:28:13 +05:30
= c.actions do
2023-03-17 16:20:25 +05:30
= render Pajamas::ButtonComponent.new(variant: :confirm, href: general_admin_application_settings_path(anchor: 'js-signup-settings')) do
= _('Deactivate')
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-close gl-ml-3'}) do
= _('Acknowledge')