changes on Zmago's request

This commit is contained in:
mlorb 2018-05-28 11:36:37 +02:00
parent 099cc29abb
commit f791234ec7
2 changed files with 3 additions and 3 deletions

View file

@ -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>

View file

@ -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>