new.html.haml 868 字节
Newer Older
D
Douwe Maan 已提交
1
- page_title "Sign in"
2

3
#signin-container
4 5 6
  - if form_based_providers.any?
    = render 'devise/shared/tabs_ldap'
  - else
7
    - unless experiment_enabled?(:signup_flow)
8
      = render 'devise/shared/tabs_normal'
9
  .tab-content
10
    - if password_authentication_enabled_for_web? || ldap_enabled? || crowd_enabled?
11
      = render 'devise/shared/signin_box'
12

13
    -# Signup only makes sense if you can also sign-in
14
    - if allow_signup?
15
      = render 'devise/shared/signup_box'
16

B
Bryce Johnson 已提交
17
  -# Show a message if none of the mechanisms above are enabled
18
  - if !password_authentication_enabled_for_web? && !ldap_enabled? && !(omniauth_enabled? && devise_mapping.omniauthable?)
B
Bryce Johnson 已提交
19 20
    %div
      No authentication methods configured.
21

B
Bryce Johnson 已提交
22 23 24
  - if omniauth_enabled? && devise_mapping.omniauthable? && button_based_providers_enabled?
    .clearfix
      = render 'devise/shared/omniauth_box'