<%= render Admin::TableActionsComponent.new(budget) do |actions| %> <%= actions.action(:investments, text: t("admin.budgets.index.budget_investments"), path: admin_budget_budget_investments_path(budget_id: budget.id)) %> <%= actions.action(:groups, text: t("admin.budgets.index.edit_groups"), path: admin_budget_groups_path(budget)) %> <% if budget.poll.present? %> <%= actions.action(:ballots, text: t("admin.budgets.index.admin_ballots"), path: admin_poll_booth_assignments_path(budget.poll)) %> <% else %> <%= actions.action(:ballots, text: t("admin.budgets.index.admin_ballots"), path: create_budget_poll_path, method: :post) %> <% end %> <%= actions.action(:preview, text: t("admin.budgets.actions.preview"), path: budget_path(budget), target: "_blank") %> <% end %>