Sha256: a88f6a1ed3a1b3e5ef676c1b307d7b7062aa51aa6437c64684f9e366d9ee7ab7

Contents?: true

Size: 458 Bytes

Versions: 133

Compression:

Stored size: 458 Bytes

Contents

<%
  items_per_line = component[:attributes][:items_per_line]
  size = (12.0/items_per_line.to_f).floor
%>

<div class="row <%= promethee_class_for component %>">
  <% component[:children].each.with_index do |child, n| %>
    <div class="col-md-<%= size %>">
        <%= render 'promethee/show/component', component: child %>
    </div>
    <% if n%items_per_line === items_per_line - 1 %>
      <div class="clearfix"></div>
    <% end %>
  <% end %>
</div>

Version data entries

133 entries across 133 versions & 1 rubygems

Version Path
promethee-1.8.3 app/views/promethee/components/collection/_show.html.erb
promethee-1.8.2 app/views/promethee/components/collection/_show.html.erb
promethee-1.8.1 app/views/promethee/components/collection/_show.html.erb
promethee-1.8.0 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.12 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.11 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.10 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.9 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.8 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.7 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.6 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.5 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.4 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.3 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.2 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.1 app/views/promethee/components/collection/_show.html.erb
promethee-1.7.0 app/views/promethee/components/collection/_show.html.erb
promethee-1.6.63 app/views/promethee/components/collection/_show.html.erb
promethee-1.6.62 app/views/promethee/components/collection/_show.html.erb
promethee-1.6.61 app/views/promethee/components/collection/_show.html.erb