<%= t("moderation.comments.index.title") %>

<%= page_entries_info @comments %>

<% @comments.each do |comment| %> <% if can? :ignore_flag, comment %> <% end %> <% if comment.ignored_flag? %> <% end %> <% end %>
<%= t("moderation.comments.index.headers.commentable") %> |  <%= t("moderation.comments.index.headers.commentable_type") %> |  <%= t("moderation.comments.index.headers.updated_at") %> <%= t("moderation.comments.index.headers.comment") %> <%= t("moderation.comments.index.headers.flags") %> <%= t("moderation.debates.index.headers.actions") %>
<%= link_to comment.commentable.title, comment.commentable %>
<%= comment.commentable_type.constantize.model_name.human %> <%= l comment.updated_at.to_date %>
<%= comment.body %> <%= comment.flags_count %> <%= link_to t("moderation.comments.index.hide"), hide_in_moderation_screen_moderation_comment_path(comment, request.query_parameters), method: :put, class: "delete" %> <%= link_to t("moderation.comments.index.ignore_flag"), ignore_flag_moderation_comment_path(comment, request.query_parameters), method: :put, class: "button radius tiny warning" %> <%= t("moderation.comments.index.ignored_flag") %>
<%= paginate @comments %>