Sha256: 18de6301bc257b8f52399b66e5754ba5a841e71882aaf50260e8eca1a3e2b0c6

Contents?: true

Size: 1.59 KB

Versions: 23

Compression:

Stored size: 1.59 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>
            <div class="panel panel-default">
                <div class="panel-body">
                    <% if signin? %>
                        <%= form_for post, url:{action: :save_comment, post_id: post.id}, html: {method: "post", class: "form-comment"} do |f|%>
                            <input type="hidden" name="post_comment[post_id]" value="<%= post.id %>">
                            <input type="hidden" name="slug" value="<%= post.slug %>">
                            <textarea id="textarea_comments" name="post_comment[content]" class="form-control counted" placeholder="<%= ct('comment')%>"></textarea>
                            <button type="submit" class="btn btn-info pull-right"><%= ct('comment')%></button>
                        <% end %>
                    <% else %>
                        <div class="panel-login-comment"><%= ct('comment_msg')%>  <a class="link-login-comment" href="<%= admin_path %>"><%= ct('login')%></a></div>
                    <% end %>
                </div>
            </div>
        </div>
    </div>
</section>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
camaleon_cms-1.1.0 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.9 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.8 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.7 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.6 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.5 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.4 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.3 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.2 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0.1 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-1.0 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.2.1 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.2.0 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.1.9 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.1.8 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.1.7 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.1.6 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.1.5 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.1.4 app/apps/themes/new/views/partials/_comments.html.erb
camaleon_cms-0.1.3 app/apps/themes/new/views/partials/_comments.html.erb