Merge pull request #987 from ZmagoD/zd_SCI_2033

fixes user dropdown [fixes SCI-2033]
This commit is contained in:
Zmago Devetak 2018-02-07 14:34:37 +01:00 committed by GitHub
commit b33d09536e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,8 +258,7 @@
<%= image_tag avatar_path(current_user, :icon_small),
class: "avatar" %>
</a>
<% if current_user.teams.length > 1 || can_create_teams? %>
<ul class="dropdown-menu">
<ul class="dropdown-menu" data-hook="navigation-user-menu">
<li>
<%= link_to t('nav.user.settings'), edit_user_registration_path, data: { turbolinks: false } %>
</li>
@ -270,7 +269,6 @@
method: :delete %>
</li>
</ul>
<% end %>
</li>
</ul>
</div>