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

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

<%= page_entries_info @budget_investments %>

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

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

<% @budget_investments.each do |investment| %> <% end %>
<%= t("moderation.budget_investments.index.headers.budget_investment") %> <%= t("moderation.budget_investments.index.headers.moderate") %>
<%= link_to investment.title, admin_budget_budget_investment_path( budget_id: investment.budget_id, id: investment.id ), target: "_blank" %>
<%= l investment.updated_at.to_date %>  •  <%= investment.flags_count %>  •  <%= investment.author.username %>
<%= investment.description %>
<%= check_box_tag "budget_investment_ids[]", investment.id, nil, id: "#{dom_id(investment)}_check" %>
<%= submit_tag t("moderation.budget_investments.index.block_authors"), name: "block_authors", class: "button hollow alert", data: { confirm: t("moderation.budget_investments.index.confirm") } %>
<%= submit_tag t("moderation.budget_investments.index.hide_budget_investments"), name: "hide_budget_investments", class: "button hollow alert", data: { confirm: t("moderation.budget_investments.index.confirm") } %> <%= submit_tag t("moderation.budget_investments.index.ignore_flags"), name: "ignore_flags", class: "button hollow", data: { confirm: t("moderation.budget_investments.index.confirm") } %>
<%= paginate @budget_investments %> <% end %>