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

17 lines
917 B
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
%ul.nav-links.new-session-tabs.nav-tabs.nav{ class: ('custom-provider-tabs' if form_based_providers.any?) }
2016-11-03 12:29:30 +05:30
- if crowd_enabled?
2018-11-08 19:23:39 +05:30
%li.nav-item
2019-02-15 15:39:39 +05:30
= link_to "Crowd", "#crowd", class: "nav-link #{active_when(form_based_auth_provider_has_active_class?(:crowd))}", 'data-toggle' => 'tab'
2016-11-03 12:29:30 +05:30
- @ldap_servers.each_with_index do |server, i|
2018-11-08 19:23:39 +05:30
%li.nav-item
2019-02-15 15:39:39 +05:30
= link_to server['label'], "##{server['provider_name']}", class: "nav-link #{active_when(i.zero? && form_based_auth_provider_has_active_class?(:ldapmain))} qa-ldap-tab", 'data-toggle' => 'tab'
= render_if_exists 'devise/shared/tab_smartcard'
2018-03-17 18:26:18 +05:30
- if password_authentication_enabled_for_web?
2018-11-08 19:23:39 +05:30
%li.nav-item
2018-12-05 23:21:45 +05:30
= link_to 'Standard', '#login-pane', class: 'nav-link qa-standard-tab', 'data-toggle' => 'tab'
2018-03-17 18:26:18 +05:30
- if allow_signup?
2018-11-08 19:23:39 +05:30
%li.nav-item
2018-12-05 23:21:45 +05:30
= link_to 'Register', '#register-pane', class: 'nav-link qa-register-tab', 'data-toggle' => 'tab'