<% if redact_deleted? %> [deleted] <% else %> <%= link_to_user comment.creator %> <% if comment.is_deleted? %> (deleted) <% end %> <% end %>
<%= link_to time_ago_in_words_tagged(comment.created_at), post_path(comment.post, anchor: "comment_#{comment.id}"), class: "message-timestamp" %>
<% if thresholded? %> <%= link_to "[hidden]", "javascript:void(0)", class: "unhide-comment-link" %> <% end %> <%= tag.div class: "body prose", style: ("display: none;" if thresholded?) do %> <% if redact_deleted? %>

[deleted]

<% else %> <%= format_text(comment.body, data: dtext_data) %> <% end %> <%= render "application/update_notice", record: comment %> <% end %> <% if policy(comment).reply? %> <% if context == :index_by_comment %>
  • <%= link_to "Reply", new_comment_path(id: comment, comment: { post_id: comment.post_id }), class: "reply-link" %>
  • <% else %>
  • <%= link_to "Reply", new_comment_path(id: comment, comment: { post_id: comment.post_id }), class: "reply-link", remote: true %>
  • <% end %> <% end %> <% if policy(comment).update? %> <% if comment.is_deleted? %>
  • <%= link_to "Undelete", undelete_comment_path(comment.id), method: :post, remote: true %>
  • <% else %>
  • <%= link_to "Delete", comment_path(comment.id), "data-confirm": "Are you sure you want to delete this comment?", method: :delete, remote: true %>
  • <% end %>
  • <%= link_to "Edit", edit_comment_path(comment.id), id: "edit_comment_link_#{comment.id}", class: "edit_comment_link" %>
  • <% end %> <% if policy(comment).vote? %> <% end %> <% if policy(comment).reportable? %>
  • <%= link_to "Report", new_moderation_report_path(moderation_report: { model_type: "Comment", model_id: comment.id }), remote: true %>
  • <% end %> <% if has_moderation_reports? %>
  • This comment has been reported! (<%= link_to pluralize(comment.moderation_reports.length, "report"), moderation_reports_path(search: { model_type: "Comment", model_id: comment.id }) %>)
  • <% end %>
    <% if policy(comment).update? %> <%= render "comments/form", comment: comment, hidden: true %> <% end %>