<%= investment.id %> <%= link_to investment.title, admin_budget_budget_investment_path(budget_id: @budget.id, id: investment.id, params: Budget::Investment.filter_params(params)), target: "_blank" %> <%= investment.total_votes %> <% if investment.administrator.present? %> "> <%= investment.administrator.name %> <% else %> <%= t("admin.budget_investments.index.no_admin_assigned") %> <% end %> <% no_valuation_groups = t("admin.budget_investments.index.no_valuation_groups") %> <%= investment.assigned_valuation_groups || no_valuation_groups %>
<% no_valuators_assigned = t("admin.budget_investments.index.no_valuators_assigned") %> <%= investment.assigned_valuators || no_valuators_assigned %> <%= investment.heading.name %> <%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}", price: investment.formatted_price) %> <%= investment.valuation_finished? ? t("shared.yes"): t("shared.no") %> <%= form_for [:admin, investment.budget, investment], remote: true do |f| %> <%= f.check_box :visible_to_valuators, label: false, class: "js-submit-on-change", id: "budget_investment_visible_to_valuators" %> <% end %> <% if investment.selected? %> <%= link_to_unless investment.budget.finished?, t("admin.budget_investments.index.selected"), toggle_selection_admin_budget_budget_investment_path(@budget, investment, filter: params[:filter], sort_by: params[:sort_by], min_total_supports: params[:min_total_supports], max_total_supports: params[:max_total_supports], advanced_filters: params[:advanced_filters], page: params[:page]), method: :patch, remote: true, class: "button small expanded" %> <% elsif investment.feasible? && investment.valuation_finished? %> <%= link_to_unless investment.budget.finished?, t("admin.budget_investments.index.select"), toggle_selection_admin_budget_budget_investment_path(@budget, investment, filter: params[:filter], sort_by: params[:sort_by], min_total_supports: params[:min_total_supports], max_total_supports: params[:max_total_supports], advanced_filters: params[:advanced_filters], page: params[:page]), method: :patch, remote: true, class: "button small hollow expanded" %> <% end %> <% if params[:filter] == "selected" %> <%= investment.incompatible? ? t("shared.yes"): t("shared.no") %> <% end %>