gitlab-org--gitlab-foss/app/views/devise/shared/_tabs_ldap.html.haml

14 lines
729 B
Text
Raw Normal View History

2018-04-19 15:16:27 -04:00
%ul.nav-links.new-session-tabs.nav-tabs.nav{ class: ('custom-provider-tabs' if form_based_providers.any?) }
- if crowd_enabled?
2018-05-24 22:32:40 -04:00
%li.nav-item
= link_to "Crowd", "#crowd", class: 'nav-link active', 'data-toggle' => 'tab'
- @ldap_servers.each_with_index do |server, i|
2018-05-24 22:32:40 -04:00
%li.nav-item{ class: active_when(i.zero? && !crowd_enabled?) }
= link_to server['label'], "##{server['provider_name']}", class: 'nav-link', 'data-toggle' => 'tab'
- if password_authentication_enabled_for_web?
2018-05-24 22:32:40 -04:00
%li.nav-item
= link_to 'Standard', '#login-pane', class: 'nav-link', 'data-toggle' => 'tab'
- if allow_signup?
2018-05-24 22:32:40 -04:00
%li.nav-item
= link_to 'Register', '#register-pane', class: 'nav-link', 'data-toggle' => 'tab'