summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-06-21 15:53:32 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-06-21 15:53:32 +0000
commitdaf4edd2b0c54b1c1124761a8ac661d8e1449995 (patch)
tree96ae83292d7945c1aa5094ecf218516103d9ad42
parente76f26ed8855be0cdb36928ab730098d928c5495 (diff)
downloadgitlab-ce-daf4edd2b0c54b1c1124761a8ac661d8e1449995.tar.gz
Fix multiple active tabs when Crowd or LDAP is in use
-rw-r--r--app/views/devise/shared/_tabs_ldap.html.haml4
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'