mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Merge pull request #519 from ZmagoD/zd_SCI_1092_v2
adds hooks in team switch [fixes SCI-1092]
This commit is contained in:
commit
804fb2fec9
1 changed files with 6 additions and 3 deletions
|
@ -86,7 +86,8 @@
|
|||
</span>
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-menu ">
|
||||
<ul class="dropdown-menu"
|
||||
data-hook="teams-dropdown">
|
||||
<%= form_for(current_user,
|
||||
url: user_current_team_path,
|
||||
method: :post) do |f| %>
|
||||
|
@ -103,9 +104,11 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
<% if current_user.teams.length > 1 %>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li data-hook="new-team-btn"
|
||||
role="separator"
|
||||
class="divider"></li>
|
||||
<% end %>
|
||||
<li>
|
||||
<li data-hook="new-team-btn">
|
||||
<%= link_to new_team_path do %>
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
<%= t('users.settings.teams.index.new_team') %>
|
||||
|
|
Loading…
Add table
Reference in a new issue