debian-mirror-gitlab/app/views/devise/sessions/new.html.haml

20 lines
759 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Sign in"
2015-04-26 12:48:37 +05:30
%div
2016-04-02 18:10:28 +05:30
- if signin_enabled? || ldap_enabled? || crowd_enabled?
2015-04-26 12:48:37 +05:30
= render 'devise/shared/signin_box'
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
-# Omniauth fits between signin/ldap signin and signup and does not have a surrounding box
2016-06-02 11:05:42 +05:30
- if omniauth_enabled? && devise_mapping.omniauthable? && button_based_providers_enabled?
2015-04-26 12:48:37 +05:30
.clearfix.prepend-top-20
= render 'devise/shared/omniauth_box'
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
-# Signup only makes sense if you can also sign-in
- if signin_enabled? && signup_enabled?
.prepend-top-20
= render 'devise/shared/signup_box'
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
-# Show a message if none of the mechanisms above are enabled
2016-04-02 18:10:28 +05:30
- if !signin_enabled? && !ldap_enabled? && !(omniauth_enabled? && devise_mapping.omniauthable?)
2015-04-26 12:48:37 +05:30
%div
No authentication methods configured.