scinote-web/app/views/projects/index/_team_projects.html.erb

18 lines
597 B
Text

<div class="row">
<% projects.each_with_index do |project, i| %>
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
<% cache [current_user, project] do %>
<%= render partial: "projects/index/project.html.erb", locals: { project: project } %>
<% end %>
</div>
<% if (i + 1) % 4 == 0 %>
<div class="clearfix visible-lg-block"></div>
<% end %>
<% if (i + 1) % 3 == 0 %>
<div class="clearfix visible-md-block"></div>
<% end %>
<% if (i + 1) % 2 == 0 %>
<div class="clearfix visible-sm-block"></div>
<% end %>
<% end %>
</div>