From f791234ec77011c822741f88b083d4ff59f62634 Mon Sep 17 00:00:00 2001 From: mlorb Date: Mon, 28 May 2018 11:36:37 +0200 Subject: [PATCH] changes on Zmago's request --- app/views/layouts/application.html.erb | 4 ++-- app/views/projects/index.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 975c9a917..2e84dd2ab 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -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? %>
- <% if user_signed_in? && current_user.teams.length == 0 %> + <% if user_signed_in? && current_user.teams.empty? %>

<%=t 'general.no_teams.title' %>

diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index 324f69c24..48209b0e2 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -66,7 +66,7 @@
- <% if @teams.length > 0 && can_create_projects?(current_team) %> + <% if @teams.exists? && can_create_projects?(current_team) %>