mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
changes on Zmago's request
This commit is contained in:
parent
099cc29abb
commit
f791234ec7
2 changed files with 3 additions and 3 deletions
|
@ -41,10 +41,10 @@
|
|||
locals: { flash: flash, notice: notice, alert: alert } %>
|
||||
<% end %>
|
||||
|
||||
<%= render "shared/left_menu_bar" if user_signed_in? && current_user.teams.length > 0 %>
|
||||
<%= render "shared/left_menu_bar" if user_signed_in? && current_user.teams.exists? %>
|
||||
|
||||
<div id="content-wrapper">
|
||||
<% if user_signed_in? && current_user.teams.length == 0 %>
|
||||
<% if user_signed_in? && current_user.teams.empty? %>
|
||||
<!-- If member of no teams -->
|
||||
<div class="jumbotron">
|
||||
<h2><%=t 'general.no_teams.title' %></h2>
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
|
||||
<% if @teams.length > 0 && can_create_projects?(current_team) %>
|
||||
<% if @teams.exists? && can_create_projects?(current_team) %>
|
||||
<!-- new project button -->
|
||||
<a class="btn btn-primary pull-right" id="new-project-btn">
|
||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||
|
|
Loading…
Reference in a new issue