<%= investment.id %> <%= link_to investment.title, admin_budget_budget_investment_path(budget_id: @budget.id, id: investment.id, params: Budget::Investment.filter_params(params).to_h), target: "_blank" %> <%= investment.total_votes %> <% if investment.administrator.present? %> "> <%= investment.administrator.description_or_name %> <% else %> <%= t("admin.budget_investments.index.no_admin_assigned") %> <% end %> <%= investment.author.name %> <% valuators = [investment.assigned_valuation_groups, investment.assigned_valuators].compact %> <% no_valuators_assigned = t("admin.budget_investments.index.no_valuators_assigned") %> <%= raw valuators.present? ? valuators.join(", ") : no_valuators_assigned %> <%= investment.heading.name %> <%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}") %> <%= 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? %> <% unless investment.budget.finished? %> <%= link_to 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 %> <% end %> <% if params[:advanced_filters]&.include?("selected") %> <%= investment.incompatible? ? t("shared.yes"): t("shared.no") %> <% end %>