debian-mirror-gitlab/app/views/devise/shared/_signin_box.html.haml

33 lines
1.2 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
.login-box
- if signup_enabled?
.login-heading
%h3 Existing user? Sign in
- else
.login-heading
%h3 Sign in
.login-body
2015-09-11 14:41:01 +05:30
- if form_based_providers.any?
%ul.nav-links
2015-09-25 12:07:36 +05:30
- if crowd_enabled?
%li.active
= link_to "Crowd", "#tab-crowd", 'data-toggle' => 'tab'
2015-04-26 12:48:37 +05:30
- @ldap_servers.each_with_index do |server, i|
2015-09-25 12:07:36 +05:30
%li{class: (:active if i.zero? && !crowd_enabled?)}
2015-04-26 12:48:37 +05:30
= link_to server['label'], "#tab-#{server['provider_name']}", 'data-toggle' => 'tab'
- if signin_enabled?
%li
= link_to 'Standard', '#tab-signin', 'data-toggle' => 'tab'
.tab-content
2015-09-25 12:07:36 +05:30
- if crowd_enabled?
%div.tab-pane.active{id: "tab-crowd"}
= render 'devise/sessions/new_crowd'
2015-04-26 12:48:37 +05:30
- @ldap_servers.each_with_index do |server, i|
2015-09-25 12:07:36 +05:30
%div.tab-pane{id: "tab-#{server['provider_name']}", class: (:active if i.zero? && !crowd_enabled?)}
2015-04-26 12:48:37 +05:30
= render 'devise/sessions/new_ldap', server: server
- if signin_enabled?
%div#tab-signin.tab-pane
= render 'devise/sessions/new_base'
- elsif signin_enabled?
= render 'devise/sessions/new_base'