20 lines
1.2 KiB
Text
20 lines
1.2 KiB
Text
- show_password_form = local_assigns.fetch(:show_password_form, password_authentication_enabled_for_web?)
|
|
- render_signup_link = local_assigns.fetch(:render_signup_link, true)
|
|
|
|
%ul.nav-links.new-session-tabs.nav-tabs.nav{ class: ('custom-provider-tabs' if any_form_based_providers_enabled?) }
|
|
- if crowd_enabled?
|
|
%li.nav-item
|
|
= link_to _("Crowd"), "#crowd", class: "nav-link #{active_when(form_based_auth_provider_has_active_class?(:crowd))}", 'data-toggle' => 'tab', role: 'tab'
|
|
= render_if_exists "devise/shared/kerberos_tab"
|
|
- ldap_servers.each_with_index do |server, i|
|
|
%li.nav-item
|
|
= link_to server['label'], "##{server['provider_name']}", class: "nav-link #{active_when(i == 0 && form_based_auth_provider_has_active_class?(:ldapmain))}", data: { toggle: 'tab', qa_selector: 'ldap_tab' }, role: 'tab'
|
|
|
|
= render_if_exists 'devise/shared/tab_smartcard'
|
|
|
|
- if show_password_form
|
|
%li.nav-item
|
|
= link_to _('Standard'), '#login-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'standard_tab' }, role: 'tab'
|
|
- if render_signup_link && allow_signup?
|
|
%li.nav-item
|
|
= link_to _('Register'), '#register-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'register_tab' }, role: 'tab'
|