<% decorated_comment = comment.decorate %>
<%= render partial: "comments/comment_avatar", locals: { comment: comment } %>
<% if comment.deleted %>
<%= t("views.comments.delete.comment_deleted") %>
<% else %> <%= render partial: "comments/comment_quality_marker", locals: { comment: comment, decorated_comment: decorated_comment } %> <%= render partial: "comments/comment_header", locals: { comment: comment, commentable: commentable, decorated_comment: decorated_comment } %>
<%= should_be_hidden?(comment, @root_comment) ? "element-hidden-by-commentable-user" : "" %> "> <%= comment.safe_processed_html %>
<% if should_be_hidden?(comment, @root_comment) %> <% end %> <% end %>
<%= unless comment.deleted || commentable.nil? || should_be_hidden?(comment, @root_comment) (render partial: "comments/comment_footer", locals: { comment: comment, commentable: commentable, is_childless: is_childless }) end %>
<%= subtree_html %>