<% if comment && comment.user && !should_be_hidden?(comment, @root_comment) %> <% if comment.depth < 3 %>
<%= inline_svg_tag("collapse.svg", aria: true, class: "crayons-icon expanded", title: "Collapse") %> <%= inline_svg_tag("expand.svg", aria: true, class: "crayons-icon collapsed", title: "Expand") %> <% end %>
<%= comment_class(comment, is_view_root: is_view_root) %> comment--deep-<%= comment.depth %> <%= "comment--too-deep" if comment.depth > 3 %> " data-comment-id="<%= comment.id %>" data-path="<%= commentable.path %>/comments/<%= comment.id_code_generated %>" data-comment-author-id="<%= comment_user_id_unless_deleted comment %>" data-content-user-id="<%= comment_user_id_unless_deleted comment %>"> <%= render("comments/comment_proper", comment: comment, commentable: commentable, is_view_root: is_view_root, is_childless: is_childless, subtree_html: subtree_html) %>
<% if comment.depth < 3 %>
<% end %> <% end %>