Sha256: 869fbd6f7f28a7b0842c0d527245282179f3f7041ae8a91eaba1bec698abee2b

Contents?: true

Size: 1.44 KB

Versions: 8

Compression:

Stored size: 1.44 KB

Contents

<section id="comments" class="comments-area">
    <% if post.the_comments.count > 0 %>
        <h2 class="comments-title"><%= post.the_comments.count %> <%= ct('comments')%> "<span><%= post.the_title %></span>"</h2>
        <section class="comment-list">
            <%= render partial: "partials/comments_list", locals: { comments: post.the_comments, children: "" } %>
        </section>
    <% end %>
    <div id="respond" class="comment-respond">
        <% if signin? %>
            <h3 id="reply-title" class="comment-reply-title"><%= ct('comment_new')%></h3>
            <%= form_for post, url:{action: :save_comment, post_id: post.id}, html: {method: "post", class: "comment-form"} do |f|%>
                <input type="hidden" name="post_comment[post_id]" value="<%= post.id %>">
                <input type="hidden" name="slug" value="<%= post.slug %>">
                <div class="mb-20">
                    <textarea id="textarea_comments" name="post_comment[content]" class="form-control counted" placeholder="<%= ct('comment')%>"></textarea>
                </div>
                <div class="mb-20">
                    <button type="submit" class="btn btn-info pull-right"><%= ct('comment')%></button>
                </div>
            <% end %>
        <% else %>
            <div class="panel-login-comment"><%= ct('comment_msg')%>  <a class="link-login-comment" href="<%= cama_admin_path %>"><%= ct('login')%></a></div>
        <% end %>
    </div>
</section>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
camaleon_cms-2.1.1.4 app/apps/themes/default/views/partials/_comments.html.erb
camaleon_cms-2.1.1 app/apps/themes/default/views/partials/_comments.html.erb
camaleon_cms-2.1.0 app/apps/themes/default/views/partials/_comments.html.erb
camaleon_cms-2.0.4.1 app/apps/themes/default/views/partials/_comments.html.erb
camaleon_cms-2.0.4 app/apps/themes/default/views/partials/_comments.html.erb
camaleon_cms-2.0.3 app/apps/themes/default/views/partials/_comments.html.erb
camaleon_cms-2.0.2 app/apps/themes/default/views/partials/_comments.html.erb
camaleon_cms-2.0.1 app/apps/themes/default/views/partials/_comments.html.erb