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

20 lines
732 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
- if signin_enabled? || ldap_enabled?
= 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
- if Gitlab.config.omniauth.enabled && devise_mapping.omniauthable?
.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
- if !signin_enabled? && !ldap_enabled? && !(Gitlab.config.omniauth.enabled && devise_mapping.omniauthable?)
%div
No authentication methods configured.