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

15 lines
941 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',
title: _('Open registration is enabled on your instance.'),
variant: :warning,
alert_class: 'js-registration-enabled-callout',
alert_data: { feature_id: UserCalloutsHelper::REGISTRATION_ENABLED_CALLOUT, dismiss_endpoint: user_callouts_path },
close_button_data: { testid: 'close-registration-enabled-callout' } do
.gl-alert-body
2021-09-30 23:02:18 +05:30
= html_escape(_('%{anchorOpen}Learn more%{anchorClose} about how you can customize / disable registration on your instance.')) % { anchorOpen: "<a href=\"#{help_page_path('user/admin_area/settings/sign_up_restrictions')}\" class=\"gl-link\">".html_safe, anchorClose: '</a>'.html_safe }
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
= _('View setting')