gitlab-org--gitlab-foss/app/views/devise/sessions/new.html.haml

24 lines
806 B
Text
Raw Normal View History

2015-04-30 13:06:18 -04:00
- page_title "Sign in"
2015-01-07 20:07:36 -05:00
%div
- if form_based_providers.any?
= render 'devise/shared/tabs_ldap'
- else
= render 'devise/shared/tabs_normal'
.tab-content
- if password_authentication_enabled_for_web? || ldap_enabled? || crowd_enabled?
= render 'devise/shared/signin_box'
-# Signup only makes sense if you can also sign-in
- if allow_signup?
2015-01-07 20:07:36 -05:00
= render 'devise/shared/signup_box'
2016-09-28 11:13:42 -04:00
-# Show a message if none of the mechanisms above are enabled
- if !password_authentication_enabled_for_web? && !ldap_enabled? && !(omniauth_enabled? && devise_mapping.omniauthable?)
2016-09-28 11:13:42 -04:00
%div
No authentication methods configured.
2016-09-28 11:13:42 -04:00
- if omniauth_enabled? && devise_mapping.omniauthable? && button_based_providers_enabled?
.clearfix
= render 'devise/shared/omniauth_box'