Commit 4a50a806 authored by Dave Pisek's avatar Dave Pisek

Make members badge Pajamas compliant

This commit changes the badge within the members badge from
applying manual css-classes to using the new, Pajamas compliant
helper.
parent f8495767
- type ||= 'info'
- variant ||= :info
%span.px-1.py-1
%span{ class: "badge badge-pill gl-badge sm badge-#{type}" }= yield
= gl_badge_tag yield, variant: variant, size: :sm
- if user.blocked?
= render 'shared/members/badge', type: 'danger' do
= render 'shared/members/badge', variant: :danger do
= _("Blocked")
- if user == current_user
= render 'shared/members/badge', type: 'success' do
= render 'shared/members/badge', variant: :success do
= _("It's you")
- if user.two_factor_enabled?
= render 'shared/members/badge', type: 'info' do
= render 'shared/members/badge', variant: :info do
= _("2FA")
- if member.group_managed_account?
= render 'shared/members/badge', type: 'info' do
= render 'shared/members/badge', variant: :info do
= _('Managed Account')
- if group.present? && current_user_is_group_owner && user.using_gitlab_com_seat?(group)
= render 'shared/members/badge', type: 'neutral' do
= render 'shared/members/badge', variant: :neutral do
= _("Is using seat")
- if member.group_sso?
= render 'shared/members/badge', type: 'info' do
= render 'shared/members/badge', variant: :info do
SAML
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