Commit 55d31b13 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '344411-make-badges-in-app-views-shared-members-_badge-html-haml-pajamas-compliant' into 'master'

Resolve "Make badges in app/views/shared/members/_badge.html.haml Pajamas-compliant"

See merge request gitlab-org/gitlab!76906
parents 27dd3930 4a50a806
- type ||= 'info' - variant ||= :info
%span.px-1.py-1 %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? - if user.blocked?
= render 'shared/members/badge', type: 'danger' do = render 'shared/members/badge', variant: :danger do
= _("Blocked") = _("Blocked")
- if user == current_user - if user == current_user
= render 'shared/members/badge', type: 'success' do = render 'shared/members/badge', variant: :success do
= _("It's you") = _("It's you")
- if user.two_factor_enabled? - if user.two_factor_enabled?
= render 'shared/members/badge', type: 'info' do = render 'shared/members/badge', variant: :info do
= _("2FA") = _("2FA")
- if member.group_managed_account? - if member.group_managed_account?
= render 'shared/members/badge', type: 'info' do = render 'shared/members/badge', variant: :info do
= _('Managed Account') = _('Managed Account')
- if group.present? && current_user_is_group_owner && user.using_gitlab_com_seat?(group) - 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") = _("Is using seat")
- if member.group_sso? - if member.group_sso?
= render 'shared/members/badge', type: 'info' do = render 'shared/members/badge', variant: :info do
SAML 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