Sha256: 74fbc58f9561a787a97fbd00699fea2de30a3885090ac76af3bfb1feb203b273

Contents?: true

Size: 1.61 KB

Versions: 8

Compression:

Stored size: 1.61 KB

Contents

<section class="comment-list">
    <% if post.the_comments.count > 0 %>
        <div class="row">
            <div class="col-md-12">
                <h2 class="page-header"><%= ct('comments')%></h2>
                <section class="comment-list">
                    <%= render partial: "partials/comments_list", locals: { comments: post.the_comments, children: "" } %>
                </section>
            </div>
        </div>
    <% end %>

    <div class="row">
        <div class="col-md-12 col-sm-12">
            <h3><%= ct('comment_new')%></h3>
            <% if signin? %>
                <%= form_for post, url:{action: :save_comment, post_id: post.id}, html: {method: "post", class: "form-comment"} do |f|%>
                    <%= render partial: "camaleon_cms/flash_messages" %>
                    <input type="hidden" name="post_comment[post_id]" value="<%= post.id %>">
                    <input type="hidden" name="slug" value="<%= post.slug %>">
                    <div class="form-group">
                        <textarea id="textarea_comments" name="post_comment[content]" class="form-control counted" placeholder="<%= ct('comment')%>"></textarea>
                    </div>
                    <div class="form-group text-right">
                        <button type="submit" class="btn btn-info"><%= 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>
    </div>
</section>

Version data entries

8 entries across 8 versions & 1 rubygems

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