<div class="comments-for-post" data-post-id="<%= post.id %>">
  <% if show_header %>
    <%= render "comments/partials/index/header", :post => post %>
  <% end %>

  <div class="row notices">
    <% if post.comments.hidden(CurrentUser.user).count > 0 || (params[:controller] == "comments" && post.comments.count > 6) %>
      <span class="info" id="threshold-comments-notice-for-<%= post.id %>">
        <%= link_to "Show all comments", comments_path(:post_id => post.id, :include_below_threshold => true), :remote => true %>
      </span>
    <% end %>
  </div>

  <div class="list-of-comments">
    <% if comments.empty? %>
      <% if post.last_commented_at.present? %>
        <p>There are no visible comments.</p>
      <% else %>
        <p>There are no comments.</p>
      <% end %>
    <% else %>
      <%= render :partial => "comments/partials/show/comment", :collection => comments %>
    <% end %>
  </div>

  <div class="clearfix"></div>

  <% if CurrentUser.is_member? %>
    <div class="new-comment">
      <p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
      <%= render "comments/partials/new/form", :post => post %>
    </div>
  <% end %>
</div>
