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

<%= render "shared/filter_subnav", i18n_namespace: "moderation.comments.index" %>

<%= page_entries_info @comments %>

<%= t("moderation.comments.index.order") %> <%= render "shared/order_selector", i18n_namespace: "moderation.comments.index" %>
<%= form_tag moderate_moderation_comments_path(request.query_parameters), method: :put do %>

<%= t("shared.check") %>: <%= link_to t("shared.check_all"), "#", data: { check_all: "comment_ids[]" } %> | <%= link_to t("shared.check_none"), "#", data: { check_none: "comment_ids[]" } %>

<% @comments.each do |comment| %> <% end %>
<%= t("moderation.comments.index.headers.comment") %> <%= t("moderation.comments.index.headers.moderate") %>
<%= comment.commentable_type.constantize.model_name.human %> - <%= link_to comment.commentable.title, commentable_path(comment), target: "_blank" %>
<%= l comment.updated_at.to_date %>  •  <%= comment.flags_count %>  •  <%= comment.author.username %>
<%= comment.body %>
<%= check_box_tag "comment_ids[]", comment.id, nil, id: "#{dom_id(comment)}_check" %>
<%= submit_tag t("moderation.comments.index.block_authors"), name: "block_authors", class: "button hollow alert", data: { confirm: t("moderation.comments.index.confirm") } %>
<%= submit_tag t("moderation.comments.index.hide_comments"), name: "hide_comments", class: "button hollow alert", data: { confirm: t("moderation.comments.index.confirm") } %> <%= submit_tag t("moderation.comments.index.ignore_flags"), name: "ignore_flags", class: "button hollow", data: { confirm: t("moderation.comments.index.confirm") } %>
<%= paginate @comments %> <% end %>