diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-21 18:53:32 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-06-21 18:53:32 +0300 |
commit | daf4edd2b0c54b1c1124761a8ac661d8e1449995 (patch) | |
tree | 96ae83292d7945c1aa5094ecf218516103d9ad42 /app/views/devise | |
parent | e76f26ed8855be0cdb36928ab730098d928c5495 (diff) |
Fix multiple active tabs when Crowd or LDAP is in use
Diffstat (limited to 'app/views/devise')
-rw-r--r-- | app/views/devise/shared/_tabs_ldap.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/devise/shared/_tabs_ldap.html.haml b/app/views/devise/shared/_tabs_ldap.html.haml index 087af61235b..58c585a29ff 100644 --- a/app/views/devise/shared/_tabs_ldap.html.haml +++ b/app/views/devise/shared/_tabs_ldap.html.haml @@ -3,8 +3,8 @@ %li.nav-item = link_to "Crowd", "#crowd", class: 'nav-link active', 'data-toggle' => 'tab' - @ldap_servers.each_with_index do |server, i| - %li.nav-item{ class: active_when(i.zero? && !crowd_enabled?) } - = link_to server['label'], "##{server['provider_name']}", class: 'nav-link', 'data-toggle' => 'tab' + %li.nav-item + = link_to server['label'], "##{server['provider_name']}", class: "nav-link #{active_when(i.zero? && !crowd_enabled?)}", 'data-toggle' => 'tab' - if password_authentication_enabled_for_web? %li.nav-item = link_to 'Standard', '#login-pane', class: 'nav-link', 'data-toggle' => 'tab' |