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

21 lines
864 B
Text
Raw Normal View History

2020-05-24 23:13:21 +05:30
- hide_remember_me = local_assigns.fetch(:hide_remember_me, false)
2020-10-24 23:57:45 +05:30
.omniauth-container.gl-mt-5
2018-11-20 20:47:30 +05:30
%label.label-bold.d-block
2021-04-29 21:17:54 +05:30
= _('Sign in with')
2018-11-20 20:47:30 +05:30
- providers = enabled_button_based_providers
.d-flex.justify-content-between.flex-wrap
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)
2021-11-11 11:23:49 +05:30
= button_to omniauth_authorize_path(:user, provider), id: "oauth-login-#{provider}", class: "btn gl-button btn-default omniauth-btn oauth-login #{qa_class_for_provider(provider)}", form: { class: 'gl-w-full' } 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
2020-04-08 14:13:33 +05:30
%fieldset.remember-me
%label
= check_box_tag :remember_me, nil, false, class: 'remember-me-checkbox'
%span
2021-04-29 21:17:54 +05:30
= _('Remember me')