Sha256: 7471bec9d3afa0129790fb13a9187c15a159d00ac9c85d0899e212a5002a1b9d
Contents?: true
Size: 1.26 KB
Versions: 11
Compression:
Stored size: 1.26 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')), class: "alert alert-warning") if @posts.empty? %> <%= raw do_pagination(@posts) %> </div> </div> </article>
Version data entries
11 entries across 11 versions & 1 rubygems