Move OAuth signin options just below signin box.
This commit is contained in:
parent
da1608196b
commit
7c39e728ef
|
|
@ -1,7 +1,3 @@
|
|||
= render 'devise/shared/signup_box'
|
||||
|
||||
.clearfix.prepend-top-20
|
||||
= render 'devise/shared/sign_in_link'
|
||||
%p
|
||||
%span.light Did not receive confirmation email?
|
||||
= link_to "Send again", new_confirmation_path(resource_name)
|
||||
= render 'devise/shared/sign_in_link'
|
||||
|
|
@ -1,15 +1,6 @@
|
|||
%div
|
||||
= render 'devise/shared/signin_box'
|
||||
|
||||
- if Gitlab.config.omniauth.enabled && devise_mapping.omniauthable?
|
||||
.prepend-top-20
|
||||
= render 'devise/shared/oauth_box'
|
||||
|
||||
- if signup_enabled?
|
||||
.prepend-top-20
|
||||
= render 'devise/shared/signup_box'
|
||||
|
||||
.clearfix.prepend-top-20
|
||||
%p
|
||||
%span.light Did not receive confirmation email?
|
||||
= link_to "Send again", new_confirmation_path(resource_name)
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
- providers = additional_providers
|
||||
- if providers.present?
|
||||
.login-box{:'data-no-turbolink' => 'data-no-turbolink'}
|
||||
%span Sign in with
|
||||
- providers.each do |provider|
|
||||
%span
|
||||
- if default_providers.include?(provider)
|
||||
= link_to authbutton(provider, 32), omniauth_authorize_path(resource_name, provider)
|
||||
- else
|
||||
= link_to provider.to_s.titleize, omniauth_authorize_path(resource_name, provider), class: "btn"
|
||||
|
|
@ -27,3 +27,16 @@
|
|||
- else
|
||||
%div
|
||||
No authentication methods configured.
|
||||
|
||||
- if Gitlab.config.omniauth.enabled && devise_mapping.omniauthable?
|
||||
.clearfix.prepend-top-20
|
||||
%p
|
||||
%span.light
|
||||
Sign in with
|
||||
- providers = additional_providers
|
||||
- providers.each do |provider|
|
||||
%span.light
|
||||
- if default_providers.include?(provider)
|
||||
= link_to authbutton(provider, 32), omniauth_authorize_path(resource_name, provider)
|
||||
- else
|
||||
= link_to provider.to_s.titleize, omniauth_authorize_path(resource_name, provider), class: "btn"
|
||||
|
|
@ -19,3 +19,8 @@
|
|||
= f.password_field :password, class: "form-control bottom", id: "user_password_sign_up", placeholder: "Password", required: true
|
||||
%div
|
||||
= f.submit "Sign up", class: "btn-create btn"
|
||||
|
||||
.clearfix.prepend-top-20
|
||||
%p
|
||||
%span.light Did not receive confirmation email?
|
||||
= link_to "Send again", new_confirmation_path(resource_name)
|
||||
Loading…
Reference in New Issue