<% for comment in comments %> <% if comment.approved? || logged_in_as_admin? %> <%= render 'comments/single_comment', single_comment: comment %> <% child_comments = comment.reviewed_replies %> <% if child_comments && child_comments.size > 0 %> <% if depth >= ArchiveConfig.COMMENT_THREAD_MAX_DEPTH && child_comments.size > 1 %>
  1. (<%= link_to ts("%{count} more comments in this thread", count: comment.children_count), comment_path(comment) %>)

  2. <% else %>
  3. <%= render 'comments/comment_thread', comments: child_comments, depth: depth+1 %>
<% end %> <% end %> <% end %> <% end %>