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

18 lines
938 B
Text
Raw Normal View History

2021-01-29 00:20:46 +05:30
- return unless show_registration_enabled_user_callout?
2021-09-04 01:27:46 +05:30
= render 'shared/global_alert',
2022-05-07 20:08:51 +05:30
title: _('Anyone can register for an account.'),
2021-09-04 01:27:46 +05:30
variant: :warning,
alert_class: 'js-registration-enabled-callout',
2022-01-26 12:08:38 +05:30
alert_data: { feature_id: Users::CalloutsHelper::REGISTRATION_ENABLED_CALLOUT, dismiss_endpoint: callouts_path },
2021-09-04 01:27:46 +05:30
close_button_data: { testid: 'close-registration-enabled-callout' } do
.gl-alert-body
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.')
2021-09-04 01:27:46 +05:30
.gl-alert-actions
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')