Sha256: 42bcf6c9f3fd1ee315250671bd8f8892d5ac9e7afc637336ea232dc486fa8062

Contents?: true

Size: 1.21 KB

Versions: 75

Compression:

Stored size: 1.21 KB

Contents

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

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

    <div class="row">
        <% _tpl = lookup_context.template_exists?("post_types/#{@post_type.the_slug}/post_list_item", nil, true) ? "post_types/#{@post_type.the_slug}/post_list_item" : 'partials/post_list_item' %>
        <% @posts.each_with_index do |post, index| %>
            <%#= raw "<div class='clearfix'></div>" if index%3 == 0 && index > 0 %>
            <%= render partial: _tpl, locals: {post: post.decorate, index: index} %>
        <% 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

75 entries across 75 versions & 2 rubygems

Version Path
camaleon_cms-2.9.0 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.8.3 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.8.2 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.8.1 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.8.0 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.7.5 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.7.4 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.7.3 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.7.2 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.7.1 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.7.0 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.6.4 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.6.3 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.6.2 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.6.1 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.6.0.1 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.6.0 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.5.3.1 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.5.3 app/views/camaleon_cms/default_theme/post_type.html.erb
camaleon_cms-2.5.2 app/views/camaleon_cms/default_theme/post_type.html.erb