<% if post.the_comments.count > 0 %>

<%= post.the_comments.count %> <%= ct('comments', default: 'Comments') %> "<%= post.the_title %>"

<%= render partial: "partials/comments_list", locals: {comments: post.the_comments, children: ""} %>
<% end %> <% if post.can_commented? %>

<%= ct('comment_new', default: 'New Comment') %>

<% if signin? || current_site.get_option('permit_anonimos_comment', false) %> <%= form_for post, url: {action: :save_comment, post_id: post.id}, html: {method: "post", class: "form-comment comment-form", id: 'form-comment'} do |f| %> <%= render partial: "camaleon_cms/flash_messages", locals: {flash: (flash[:comment_submit] || {}).with_indifferent_access} %> <% unless signin? %>
<%= text_field_tag 'post_comment[name]', '', class: 'form-control required', placeholder: t('.anonymous_name', default: 'Name') %>
<%= email_field_tag 'post_comment[email]', '', class: 'form-control required', placeholder: t('.anonymous_email', default: 'Email') %>
<% if current_site.is_enable_captcha_for_comments? %> <%= content_tag :div, raw(cama_captcha_tag), class: 'form-group' %> <% end %> <% end %>
<%= text_area_tag 'post_comment[content]', '', class: 'form-control required counted', placeholder: ct('comment', default: 'Here your comment') %>
<% end %> <% else %> <% end %>
<% end %>