2018-09-27 16:43:44 +08:00
|
|
|
<div class="row">
|
|
|
|
<% projects.each_with_index do |project, i| %>
|
|
|
|
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
|
2018-12-13 18:18:09 +08:00
|
|
|
<% cache [current_user, project] do %>
|
2018-09-27 16:43:44 +08:00
|
|
|
<%= render partial: "projects/index/project.html.erb", locals: { project: project } %>
|
2018-12-13 18:18:09 +08:00
|
|
|
<% end %>
|
2018-09-27 16:43:44 +08:00
|
|
|
</div>
|
|
|
|
<% if (i + 1) % 4 == 0 %>
|
|
|
|
<div class="clearfix visible-lg-block"></div>
|
|
|
|
<% end %>
|
|
|
|
<% if (i + 1) % 3 == 0 %>
|
2018-09-24 22:25:04 +08:00
|
|
|
<div class="clearfix visible-md-block"></div>
|
2018-09-27 16:43:44 +08:00
|
|
|
<% end %>
|
|
|
|
<% if (i + 1) % 2 == 0 %>
|
2018-09-24 22:25:04 +08:00
|
|
|
<div class="clearfix visible-sm-block"></div>
|
|
|
|
<% end %>
|
2018-09-27 16:43:44 +08:00
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|