Sha256: 5cda1afae1f7dee395ed6d0fa2690ceb9e3cef06c1bf6dc2221f0d2ed71c2be4

Contents?: true

Size: 1018 Bytes

Versions: 2

Compression:

Stored size: 1018 Bytes

Contents

<article id="category-view" class="category_<%= @category.slug %>">
    <%= render partial: 'partials/breadcrumb', locals: {breadcrumb: @category.the_breadcrumb } %>
    <h1><%= @category.the_title %><%= @category.the_edit_link %></h1>
    <div class="content">
        <%= raw @category.the_content %>
    </div><br><br>

    <% if @children.present? %>
        <div class="well">
            <%= render partial: "partials/categories_list", locals: {categories: @children } %>
        </div>
    <% end %>

    <div class="row">
        <% @posts.decorate.each_with_index do |post, index| %>
            <%= raw "<div class='clearfix'></div>" if index%3 == 0 && index > 0 %>
            <%= render 'post_types/commerce/product_widget', post: post %>
        <% end %>
    </div>
    <%= content_tag("div", raw(ct('no_contents_found', default: 'No contents found')), class: "alert alert-warning") if @posts.empty? %>
    <%= will_paginate @posts, renderer: BootstrapPagination::Rails if @posts.present? %>

</article>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
camaleon_ecommerce-1.2 app/views/post_types/commerce/category.html.erb
camaleon_ecommerce-1.1 app/views/post_types/commerce/category.html.erb