<% projects.each_with_index do |project, i| %>
<% cache [current_user, project] do %>
<%= render partial: "projects/index/project.html.erb", locals: { project: project } %>
<% end %>
<% if (i + 1) % 4 == 0 %>
<% end %>
<% if (i + 1) % 3 == 0 %>
<% end %>
<% if (i + 1) % 2 == 0 %>
<% end %>
<% end %>