Sha256: 8417372415abca5fe3c722694e6cf7dbbe5a0ec47907d3597806a03985952680

Contents?: true

Size: 1.73 KB

Versions: 28

Compression:

Stored size: 1.73 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', default: 'Comments')%></h2>
                <section class="comment-list">
                    <%= render partial: "partials/#{defined?(style2) ? 'comments_list2' : 'comments_list'}", locals: { comments: post.the_comments, children: "" } %>
                </section>
            </div>
        </div>
    <% end %>

    <div class="row comment_form_panel">
        <div class="col-md-12 col-sm-12">
            <h3><%= ct('comment_new', default: 'New Comment')%></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", locals:{ flash: (flash[:comment_submit] || {}).with_indifferent_access } %>
                    <div class="form-group">
                        <textarea id="textarea_comments" name="post_comment[content]" class="form-control counted" placeholder="<%= ct('comment', default: 'Here your comment')%>"></textarea>
                    </div>
                    <div class="form-group text-right">
                        <button type="submit" class="btn btn-info"><%= ct('comment', default: 'Comment')%></button>
                    </div>
                <% end %>
            <% else %>
                <div class="panel-login-comment"><%= ct('comment_msg', default: 'You must be logged in to post a comment')%>  <a class="link-login-comment" href="<%= cama_admin_path %>"><%= ct('login', default: 'Login')%></a></div>
            <% end %>
        </div>
    </div>
</section>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
camaleon_cms-2.4.5.5 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.5.4 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.5.3 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.5.2 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.5.1 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.5 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4.7 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4.6 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4.5 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4.4 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4.3 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4.2 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4.1 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.4 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.3.13 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.3.12 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.3.11 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.3.10 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.3.9 app/views/camaleon_cms/default_theme/partials/_comments.html.erb
camaleon_cms-2.4.3.8 app/views/camaleon_cms/default_theme/partials/_comments.html.erb