<% if has_unloaded_comments? %> <%= link_to "Show #{pluralize unloaded_comment_count, "more comment"}", comments_path(post_id: post.id), class: "show-all-comments-link", remote: true %> <% end %>
<% if comments.present? %> <%= render CommentComponent.with_collection(comments, current_user: current_user, context: :index_by_post, dtext_data: dtext_data) %> <% else %>

There are no comments.

<% end %>
<% if policy(Comment).create? %>

<%= link_to "Post comment", new_comment_path(comment: { post_id: post.id }), class: "expand-comment-response" %>

<%= render "comments/form", comment: post.comments.new, hidden: true %>
<% end %>