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,002 B
Text
Raw Normal View History

2021-01-29 00:20:46 +05:30
- return unless show_registration_enabled_user_callout?
2022-06-21 17:19:12 +05:30
= render Pajamas::AlertComponent.new(title: _('Anyone can register for an account.'),
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
2022-05-07 20:08:51 +05:30
= _('Only allow anyone to register for accounts on GitLab instances that you intend to be used by anyone. Allowing anyone to register makes GitLab instances more vulnerable.')
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
2022-05-07 20:08:51 +05:30
= _('Turn off')
%button.btn.gl-alert-action.btn-default.btn-md.gl-button.js-close
%span.gl-button-text
= _('Acknowledge')