BigW Consortium Gitlab

_tabs_ldap.html.haml 647 Bytes
Newer Older
1
%ul.new-session-tabs.nav-links.nav-tabs{ class: ('custom-provider-tabs' if form_based_providers.any?) }
2 3
  - if crowd_enabled?
    %li.active
4
      = link_to "Crowd", "#crowd", 'data-toggle' => 'tab'
5
  - @ldap_servers.each_with_index do |server, i|
Semyon Pupkov committed
6
    %li{ class: active_when(i.zero? && !crowd_enabled?) }
7
      = link_to server['label'], "##{server['provider_name']}",  'data-toggle' => 'tab'
8
  - if password_authentication_enabled?
9
    %li
10
      = link_to 'Standard', '#ldap-standard', 'data-toggle' => 'tab'
11
  - if password_authentication_enabled? && signup_enabled?
12 13
    %li
      = link_to 'Register', '#register-pane', 'data-toggle' => 'tab'