Sha256: 9f29a057290a8dc1e574eda84b810e6c3ee8fe404ec8550cf66f021732786027
Contents?: true
Size: 681 Bytes
Versions: 5
Compression:
Stored size: 681 Bytes
Contents
<% size = component[:attributes][:size] offset = component[:attributes][:offset] classes = "col-md-#{size}" classes += " offset-md-#{offset} col-md-offset-#{offset}" if offset > 0 if component[:attributes][:mobile] && component[:attributes][:mobile][:enabled] mobile_size = component[:attributes][:mobile][:size] mobile_offset = component[:attributes][:mobile][:offset] classes += " col-#{mobile_size} col-xs-#{mobile_size}" classes += " offset-#{mobile_offset} col-xs-offset-#{mobile_offset}" if mobile_offset > 0 end %> <div class="<%= classes %> <%= promethee_class_for component %>"> <%= render 'promethee/show/components', components: component[:children] %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems