<%= t("moderation.debates.index.title") %>
<%= render "shared/filter_subnav", i18n_namespace: "moderation.debates.index" %>
<%= page_entries_info @debates %>
<%= t("moderation.debates.index.order") %>
<%= render "shared/order_selector", i18n_namespace: "moderation.debates.index" %>
<%= form_tag moderate_moderation_debates_path(request.query_parameters), method: :put do %>
<%= t("shared.check") %>:
<%= link_to t("shared.check_all"), "#", data: { check_all: "debate_ids[]" } %>
|
<%= link_to t("shared.check_none"), "#", data: { check_none: "debate_ids[]" } %>
| <%= t("moderation.debates.index.headers.debate") %> |
<%= t("moderation.debates.index.headers.moderate") %> |
<% @debates.each do |debate| %>
<%= link_to debate.title, debate, target: "_blank" %>
<%= l debate.updated_at.to_date %>
•
<%= debate.flags_count %>
•
<%= debate.author.username %>
<%= wysiwyg(debate.description) %>
|
<%= check_box_tag "debate_ids[]", debate.id, nil, id: "#{dom_id(debate)}_check" %>
|
<% end %>
<%= submit_tag t("moderation.debates.index.block_authors"),
name: "block_authors",
class: "button hollow alert",
data: { confirm: t("moderation.debates.index.confirm") } %>
<%= submit_tag t("moderation.debates.index.hide_debates"),
name: "hide_debates",
class: "button hollow alert",
data: { confirm: t("moderation.debates.index.confirm") } %>
<%= submit_tag t("moderation.debates.index.ignore_flags"),
name: "ignore_flags",
class: "button hollow",
data: { confirm: t("moderation.debates.index.confirm") } %>
<%= paginate @debates %>
<% end %>