scinote-web/app/views/projects/archive/_org_projects.html.erb
2016-02-12 16:52:43 +01:00

18 lines
536 B
Text

<h2 class="page-header"><%= org.name %></h2>
<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/archive/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>