Sha256: 7467eaa36e8524fbf18fcc8b18525eaba99faae894aaa905332ee05c4d885ee2

Contents?: true

Size: 1 KB

Versions: 35

Compression:

Stored size: 1 KB

Contents

<% 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

35 entries across 35 versions & 1 rubygems

Version Path
udongo-7.9.0 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.8.1 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.8.0 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.7.2 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.7.1 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.7.0 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.6.2 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.6.1 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.6.0 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.5.1 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.5.0 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.4.2 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.4.1 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.4.0 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.3.5 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.3.4 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.3.3 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.3.2 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.3.1 app/views/frontend/flexible_content/_rows.html.erb
udongo-7.2.1 app/views/frontend/flexible_content/_rows.html.erb