<% if comment.commentable %>
"> <%= crayons_icon_tag("twemoji/thumb-up", native: true, width: 16, height: 16) %> <%= comment.privileged_reaction_counts["thumbsup"] || "0" %> "> <%= crayons_icon_tag("twemoji/thumb-down", native: true, width: 16, height: 16) %> <%= comment.privileged_reaction_counts["thumbsdown"] || "0" %> "> <%= crayons_icon_tag("twemoji/suspicious", native: true, width: 16, height: 16) %> <%= (@countable_vomits&.dig(comment.id) || 0) %> "> <%= crayons_icon_tag("analytics", native: true, width: 16, height: 16) %> <%= comment.score %>
<% end %>
<%= sanitize comment.processed_html, tags: %w[strong em p h1 h2 h3 h4 h5 h6 i u b code pre br ul ol li small sup img a span hr blockquote], attributes: %w[href strong em ref rel src title alt class] %>
<% if defined?(is_individual_comment) && is_individual_comment %> <% privileged_comment_reactions = comment.reactions.privileged_category %> <% vomit_comment_reactions = privileged_comment_reactions.select { |reaction| reaction.category == "vomit" }.reverse %> <% quality_comment_reactions = (privileged_comment_reactions - vomit_comment_reactions).reverse %>

<%= t("views.admin.comments.priviliged_actions.title") %>

<%= t("views.admin.comments.priviliged_actions.description") %>

<% if params[:tab].blank? || params[:tab] == "flags" %> <%= render "admin/shared/flag_reactions_table", vomit_reactions: vomit_comment_reactions, text_section: "comments", empty_text: t("views.admin.comments.priviliged_actions.no_flags") %> <% end %> <% if params[:tab] == "quality_reactions" %> <% if quality_comment_reactions.present? %> <% quality_comment_reactions.each do |quality_reaction| %> <%= render "admin/shared/quality_action_item", quality_reaction: quality_reaction %>
<% end %> <% else %>
<%= crayons_icon_tag("quality-reactions", native: true, width: 56, height: 56) %>

<%= t("views.admin.comments.priviliged_actions.no_quality_reactions") %>

<% end %> <% end %>
<% end %>