diff --git a/ee/app/views/groups/sso/saml.html.haml b/ee/app/views/groups/sso/saml.html.haml index a899bab8b2fe73fcb622c7daf7c260b9b1446c14..76b1a7139746afc55e6c21f18588d22f084db9d0 100644 --- a/ee/app/views/groups/sso/saml.html.haml +++ b/ee/app/views/groups/sso/saml.html.haml @@ -8,20 +8,21 @@ - else = render 'devise/shared/tab_single', tab_title: _('SAML SSO') .login-box - .login-body + .login-body.gl-px-5.gl-pt-5 - if @group_saml_identity || !user_signed_in? - %h4= _('Sign in to "%{group_name}"') % { group_name: @group_name } + %h4.gl-mt-0= _('Sign in to "%{group_name}"') % { group_name: @group_name } - else - %h4= _('Allow "%{group_name}" to sign you in') % { group_name: @group_name } + %h4.gl-mt-0= _('Allow "%{group_name}" to sign you in') % { group_name: @group_name } %p= _('The "%{group_path}" group allows you to sign in with your Single Sign-On Account') % { group_path: @group_path } - if @group_saml_identity || !user_signed_in? %p= _("This will redirect you to an external sign in page.") - = saml_link _('Sign in with Single Sign-On'), @group_path, html_class: 'btn btn-success btn-md gl-button btn-block qa-saml-sso-signin-button', redirect: @redirect_path + = saml_link _('Sign in with Single Sign-On'), @group_path, html_class: 'btn btn-confirm btn-md gl-button btn-block qa-saml-sso-signin-button', redirect: @redirect_path - else - .card.card-body.bs-callout-warning - = _("Only proceed if you trust %{idp_url} to control your GitLab account sign in.") % { idp_url: @idp_url } + = render Pajamas::AlertComponent.new(variant: :warning, dismissible: false, alert_class: 'gl-mb-5 gl-word-break-word') do |c| + = c.body do + = _("Only proceed if you trust %{idp_url} to control your GitLab account sign in.") % { idp_url: @idp_url } - = saml_link _('Authorize'), @group_path, html_class: 'btn btn-success btn-md gl-button btn-block qa-saml-sso-signin-button' + = saml_link _('Authorize'), @group_path, html_class: 'btn btn-confirm btn-md gl-button btn-block qa-saml-sso-signin-button'