Sha256: 2bf62e13be0b858f8777196547c69e02488296c782990d54fd77e90f9a3d76d1
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
<% javascript 'frontend/forms' %> <% cache [model, :flexible_content, I18n.locale] do %> <div class="flexible-content"> <% model.content_rows.where(locale: I18n.locale).decorate.each do |row| %> <div class="container<%= '-fluid' if row.full_width? %>"> <% styles = row.styles.map { |k,v| "#{k}: #{v};" }.join %> <div class="row <%= row.classes.join(' ') %>" style="<%= styles %>"> <% row.columns.each do |column| %> <div class="col-sm-<%= column.width_sm %> col-md-<%= column.width_md %> col-lg-<%= column.width_lg %> col-xl-<%= column.width_xl %>"> <% content = column.content.decorate %> <% Udongo.config.flexible_content.types.each do |content_type| %> <% if content.content_type_is?(content_type) %> <%= render "frontend/flexible_content/#{content_type}", object: content, column: column %> <% end %> <% end %> </div> <% end %> </div> </div> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
udongo-6.5.1 | app/views/frontend/flexible_content/_rows.html.erb |
udongo-6.5.0 | app/views/frontend/flexible_content/_rows.html.erb |