new.html.haml 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
.login-box.panel.panel-primary
  .panel-heading
    %h3.panel-title Sign in
  .panel-body
    - if ldap_enabled? && gitlab_config.signin_enabled
      %ul.nav.nav-tabs
        %li.active
          = link_to 'LDAP', '#tab-ldap', 'data-toggle' => 'tab'
        %li
          = link_to 'Standard', '#tab-signin', 'data-toggle' => 'tab'
      .tab-content
        %div#tab-ldap.tab-pane.active
          = render partial: 'devise/sessions/new_ldap'
        %div#tab-signin.tab-pane
          = render partial: 'devise/sessions/new_base'

    - elsif ldap_enabled?
      = render partial: 'devise/sessions/new_ldap'
    - elsif gitlab_config.signin_enabled
      = render partial: 'devise/sessions/new_base'
    - else
      %div
        No authentication methods configured.

    = render 'devise/sessions/oauth_providers' if Gitlab.config.omniauth.enabled && devise_mapping.omniauthable?

  .panel-footer
    - if gitlab_config.signup_enabled
      %p
        %span.light
          Don't have an account?
        %strong
          = link_to "Sign up", new_registration_path(resource_name)
34

35
    %p
36 37
      %span.light Did not receive confirmation email?
      = link_to "Send again", new_confirmation_path(resource_name)
38 39


40 41 42
    - if extra_config.has_key?('sign_in_text')
      %hr
      = markdown(extra_config.sign_in_text)