2020-05-24 23:13:21 +05:30
|
|
|
- show_password_form = local_assigns.fetch(:show_password_form, password_authentication_enabled_for_web?)
|
|
|
|
- render_signup_link = local_assigns.fetch(:render_signup_link, true)
|
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
%ul.nav-links.new-session-tabs.nav-tabs.nav{ class: ('custom-provider-tabs' if any_form_based_providers_enabled?) }
|
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'
|
2019-09-04 21:01:54 +05:30
|
|
|
= render_if_exists "devise/shared/kerberos_tab"
|
2020-05-24 23:13:21 +05:30
|
|
|
- ldap_servers.each_with_index do |server, i|
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.nav-item
|
2019-10-12 21:52:04 +05:30
|
|
|
= link_to server['label'], "##{server['provider_name']}", class: "nav-link #{active_when(i.zero? && form_based_auth_provider_has_active_class?(:ldapmain))}", data: { toggle: 'tab', qa_selector: 'ldap_tab' }
|
2019-02-15 15:39:39 +05:30
|
|
|
|
|
|
|
= render_if_exists 'devise/shared/tab_smartcard'
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
- if show_password_form
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.nav-item
|
2020-05-24 23:13:21 +05:30
|
|
|
= link_to _('Standard'), '#login-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'standard_tab' }
|
|
|
|
- if render_signup_link && allow_signup?
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.nav-item
|
2019-10-12 21:52:04 +05:30
|
|
|
= link_to 'Register', '#register-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'register_tab' }
|