.login-box
  .login-heading
    %h3 Sign in
  .login-body
    - if ldap_enabled?
      %ul.nav.nav-tabs
        - @ldap_servers.each_with_index do |server, i|
          %li{class: (:active if i.zero?)}
            = link_to server['label'], "#tab-#{server['provider_name']}", 'data-toggle' => 'tab'
        - if gitlab_config.signin_enabled
          %li
            = link_to 'Standard', '#tab-signin', 'data-toggle' => 'tab'
      .tab-content
        - @ldap_servers.each_with_index do |server, i|
          %div.tab-pane{id: "tab-#{server['provider_name']}", class: (:active if i.zero?)}
            = render 'devise/sessions/new_ldap', provider: server['provider_name']
        - if gitlab_config.signin_enabled
          %div#tab-signin.tab-pane
            = render 'devise/sessions/new_base'

    - elsif gitlab_config.signin_enabled
      = render 'devise/sessions/new_base'
    - else
      %div
        No authentication methods configured.

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

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

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

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