debian-mirror-gitlab/app/views/layouts/header/_registration_enabled_callout.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
1 KiB
Text
Raw Normal View History

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
2021-09-30 23:02:18 +05:30
= link_to general_admin_application_settings_path(anchor: 'js-signup-settings'), class: 'btn gl-alert-action btn-confirm btn-md gl-button' do
2021-09-04 01:27:46 +05:30
%span.gl-button-text
2023-03-04 22:38:38 +05:30
= _('Deactivate')
2022-05-07 20:08:51 +05:30
%button.btn.gl-alert-action.btn-default.btn-md.gl-button.js-close
%span.gl-button-text
= _('Acknowledge')