<% provide(:head_title, t("projects.index.head_title")) %> <% if can_create_projects?(current_team) %> <% end %> <% if can_manage_project?(@project) %> <% end %>
<% if @teams.length > 0 && can_create_projects?(current_team) %> <% end %>
<% if @teams.length == 0 %>

<%=t 'projects.index.no_teams.title' %>

<%=t 'projects.index.no_teams.text' %>

<%= link_to t('projects.index.no_teams.btn'), teams_path, class: 'btn btn-primary' %>

<% else %> <% @projects_by_teams.each do |team, projects| %> <%= render partial: "projects/index/team_projects", locals: {team: team, projects: projects} %> <% end %> <% end %> <%= javascript_include_tag "projects/index", "data-turbolinks-track" => true %>