Sha256: d4d252e552108ba821e718ae269a3e5f1fd371ec07305ebc0dcdc92f698c1765

Contents?: true

Size: 1.29 KB

Versions: 88

Compression:

Stored size: 1.29 KB

Contents

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

    <% if @children.present? %>
        <div class="panel panel-primary no-line">
            <div class="panel-heading">Sub Categories</div>
            <div class="panel-body">
                <%= render partial: "partials/categories_list", locals: {categories: @children } %>
            </div>
        </div>
    <% end %>

    <div class="panel panel-primary post_list no-line">
        <div class="panel-heading">Content</div>
        <div class="panel-body">
            <div class="row">
                <% @posts.each_with_index do |post, index| %>
                    <%= raw "<div class='clearfix'></div>" if index%3 == 0 && index > 0 %>
                    <%= render partial: 'partials/post_list_item', locals: {post: post.decorate} %>
                <% end %>
            </div>
            <%= content_tag("div", raw(ct('no_contents_found', default: 'No contents found')), class: "alert alert-warning") if @posts.empty? %>
            <%= raw cama_do_pagination(@posts) %>
        </div>
    </div>

</article>


Version data entries

88 entries across 86 versions & 2 rubygems

Version Path
camaleon_cms-2.9.0 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.8.3 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.8.2 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.8.1 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.8.0 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.5 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.4 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.3 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.2 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.1 spec/dummy/app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.1 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.0 spec/dummy/app/apps/themes/new/views/category.html.erb
camaleon_cms-2.7.0 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.6.4 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.6.3 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.6.2 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.6.1 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.6.0.1 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.6.0 app/apps/themes/new/views/category.html.erb
camaleon_cms-2.5.3.1 app/apps/themes/new/views/category.html.erb