debian-mirror-gitlab/app/views/devise/shared/_omniauth_box.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
1.3 KiB
Text
Raw Normal View History

2020-05-24 23:13:21 +05:30
- hide_remember_me = local_assigns.fetch(:hide_remember_me, false)
2022-10-11 01:57:18 +05:30
- restyle_login_page_enabled = Feature.enabled?(:restyle_login_page, @project)
%div{ class: restyle_login_page_enabled ? 'omniauth-container gl-mt-5 gl-p-5 gl-text-center gl-w-90p gl-ml-auto gl-mr-auto' : 'omniauth-container gl-mt-5 gl-p-5' }
%label{ class: restyle_login_page_enabled ? 'gl-font-weight-normal' : 'gl-font-weight-bold' }
2021-04-29 21:17:54 +05:30
= _('Sign in with')
2018-11-20 20:47:30 +05:30
- providers = enabled_button_based_providers
2022-10-11 01:57:18 +05:30
.gl-display-flex.gl-flex-wrap{ class: restyle_login_page_enabled ? 'gl-justify-content-center' : 'gl-justify-content-between' }
2016-11-03 12:29:30 +05:30
- providers.each do |provider|
2018-11-20 20:47:30 +05:30
- has_icon = provider_has_icon?(provider)
2022-10-11 01:57:18 +05:30
= button_to omniauth_authorize_path(:user, provider), id: "oauth-login-#{provider}", class: "btn gl-button btn-default gl-ml-2 gl-mr-2 gl-mb-2 js-oauth-login #{qa_class_for_provider(provider)} #{'gl-w-full' unless restyle_login_page_enabled}", form: { class: restyle_login_page_enabled ? 'gl-mb-3' : 'gl-w-full gl-mb-3' } do
2018-11-20 20:47:30 +05:30
- if has_icon
= provider_image_tag(provider)
2021-11-11 11:23:49 +05:30
%span.gl-button-text
2018-11-20 20:47:30 +05:30
= label_for_provider(provider)
2020-05-24 23:13:21 +05:30
- unless hide_remember_me
2022-11-25 23:54:43 +05:30
= render Pajamas::CheckboxTagComponent.new(name: 'remember_me', value: nil) do |c|
= c.label do
= _('Remember me')