2016-10-19 08:40:58 -04:00
|
|
|
%ul.new-session-tabs.nav-links.nav-tabs{ class: ('custom-provider-tabs' if form_based_providers.any?) }
|
2016-09-09 08:21:00 -04:00
|
|
|
- if crowd_enabled?
|
|
|
|
%li.active
|
2016-10-17 11:45:27 -04:00
|
|
|
= link_to "Crowd", "#crowd", 'data-toggle' => 'tab'
|
2016-09-09 08:21:00 -04:00
|
|
|
- @ldap_servers.each_with_index do |server, i|
|
2017-02-12 03:02:26 -05:00
|
|
|
%li{ class: active_when(i.zero? && !crowd_enabled?) }
|
2016-10-17 11:49:13 -04:00
|
|
|
= link_to server['label'], "##{server['provider_name']}", 'data-toggle' => 'tab'
|
2016-09-09 08:21:00 -04:00
|
|
|
- if signin_enabled?
|
|
|
|
%li
|
2016-10-17 11:45:27 -04:00
|
|
|
= link_to 'Standard', '#ldap-standard', 'data-toggle' => 'tab'
|
2016-11-03 12:29:35 -04:00
|
|
|
- if signin_enabled? && signup_enabled?
|
|
|
|
%li
|
|
|
|
= link_to 'Register', '#register-pane', 'data-toggle' => 'tab'
|