We had five almost-identical views. Now we've removed most of the duplication, although the tables are still similar. We might refactor them in the future.
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
<h2><%= t("moderation.#{i18n_namespace}.index.title") %></h2>
|
|
|
|
<%= render "shared/filter_subnav", i18n_namespace: "moderation.#{i18n_namespace}.index" %>
|
|
|
|
<h3 class="inline-block"><%= page_entries_info records %></h3>
|
|
<div class="float-right">
|
|
<%= t("moderation.#{i18n_namespace}.index.order") %>
|
|
<%= render "shared/order_selector", i18n_namespace: "moderation.#{i18n_namespace}.index" %>
|
|
</div>
|
|
|
|
<%= form_tag form_path, method: :put do %>
|
|
<p class="float-left js-check">
|
|
<%= t("shared.check") %>:
|
|
<%= link_to t("shared.check_all"), "#", data: { check_all: field_name } %>
|
|
|
|
|
<%= link_to t("shared.check_none"), "#", data: { check_none: field_name } %>
|
|
</p>
|
|
|
|
<%= content %>
|
|
|
|
<%= submit_tag t("moderation.#{i18n_namespace}.index.block_authors"),
|
|
name: "block_authors",
|
|
class: "button hollow alert",
|
|
data: { confirm: t("moderation.#{i18n_namespace}.index.confirm") } %>
|
|
|
|
<div class="float-right">
|
|
<%= submit_tag t("moderation.#{i18n_namespace}.index.hide"),
|
|
name: "hide_#{table_name}",
|
|
class: "button hollow alert",
|
|
data: { confirm: t("moderation.#{i18n_namespace}.index.confirm") } %>
|
|
|
|
<%= submit_tag t("moderation.#{i18n_namespace}.index.ignore_flags"),
|
|
name: "ignore_flags",
|
|
class: "button hollow",
|
|
data: { confirm: t("moderation.#{i18n_namespace}.index.confirm") } %>
|
|
</div>
|
|
|
|
<%= paginate records %>
|
|
<% end %>
|