Commit dcd80772 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '354599-migrate-user-cap-alert' into 'master'

Update user cap alert to pajamas

See merge request gitlab-org/gitlab!82648
parents aaa23f2d 6d9f5ce3
...@@ -10,17 +10,12 @@ ...@@ -10,17 +10,12 @@
- users_pending_approval_link_start = link_start.html_safe % { url: help_page_path('user/group/index', anchor: 'approve-pending-members-for-a-group') } - users_pending_approval_link_start = link_start.html_safe % { url: help_page_path('user/group/index', anchor: 'approve-pending-members-for-a-group') }
- link_end = '</a>'.html_safe - link_end = '</a>'.html_safe
.gl-py-5 = render 'shared/global_alert',
.gl-alert.gl-alert-warning{ role: 'alert' } title: s_('NamespaceUserCap|Your group has reached its billable member limit'),
= sprite_icon('warning', css_class: "gl-icon gl-alert-icon") variant: :warning,
.gl-alert-title close_button_class: 'js-namespace-user-cap-alert-dismiss',
%h4.gl-alert-title= s_('NamespaceUserCap|Your group has reached its billable member limit') close_button_data: { cookie_id: hide_user_cap_alert_cookie_id(root_namespace), testid: 'namespace_user_cap_alert_dismiss' } do
%button.js-namespace-user-cap-alert-dismiss.gl-alert-dismiss.gl-cursor-pointer{ type: 'button', 'aria-label' => _('Dismiss'), data: { cookie_id: hide_user_cap_alert_cookie_id(root_namespace), level: :warning, testid: 'namespace_user_cap_alert_dismiss' } }
= sprite_icon('close', css_class: 'gl-icon')
.gl-alert-body .gl-alert-body
= s_('NamespaceUserCap|Pending users must be reviewed and approved by a group owner. Learn more about %{user_caps_link_start}user caps%{link_end} and %{users_pending_approval_link_start}users pending approval%{link_end}.').html_safe % { user_caps_link_start: user_caps_link_start, users_pending_approval_link_start: users_pending_approval_link_start, link_end: link_end } = s_('NamespaceUserCap|Pending users must be reviewed and approved by a group owner. Learn more about %{user_caps_link_start}user caps%{link_end} and %{users_pending_approval_link_start}users pending approval%{link_end}.').html_safe % { user_caps_link_start: user_caps_link_start, users_pending_approval_link_start: users_pending_approval_link_start, link_end: link_end }
.gl-alert-actions .gl-alert-actions
= link_to(s_('NamespaceUserCap|View pending approvals'), pending_users_link, class: "btn gl-alert-action btn-md gl-button btn-confirm") = link_to(s_('NamespaceUserCap|View pending approvals'), pending_users_link, class: "btn gl-alert-action btn-md gl-button btn-confirm")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment