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

21 lines
1.2 KiB
Text
Raw Normal View History

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
2021-04-29 21:17:54 +05:30
= link_to _("Crowd"), "#crowd", class: "nav-link #{active_when(form_based_auth_provider_has_active_class?(:crowd))}", 'data-toggle' => 'tab', role: '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
2021-01-29 00:20:46 +05:30
= 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'
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
2021-01-29 00:20:46 +05:30
= link_to _('Standard'), '#login-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'standard_tab' }, role: 'tab'
2020-05-24 23:13:21 +05:30
- if render_signup_link && allow_signup?
2018-11-08 19:23:39 +05:30
%li.nav-item
2021-04-29 21:17:54 +05:30
= link_to _('Register'), '#register-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'register_tab' }, role: 'tab'