mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
17 lines
488 B
Text
17 lines
488 B
Text
|
<div class="row">
|
||
|
<% projects.each_index do |i| project = projects[i] %>
|
||
|
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
|
||
|
<%= render partial: "projects/index/project", locals: {project: project} %>
|
||
|
</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>
|