<% reason = investment.reason_for_not_being_ballotable_by(current_user, ballot) %>
<% if ballot.has_investment?(investment) %>
">

<%= investment.formatted_price %>

<% if investment.should_show_ballots? %> <%= link_to t("budgets.ballots.show.remove"), budget_ballot_line_path(id: investment.id, budget_id: investment.budget_id, investments_ids: investment_ids), class: "delete small expanded", method: :delete, remote: true %> <% end %>
<% else %>

<%= investment.formatted_price %>

<% if investment.should_show_ballots? %> <%= link_to t("budgets.investments.investment.add"), budget_ballot_lines_url(investment_id: investment.id, budget_id: investment.budget_id, investments_ids: investment_ids), class: "button button-support small expanded", title: t("budgets.investments.investment.support_title"), method: :post, remote: true %> <% end %>
<% end %> <% if reason.present? && !ballot.has_investment?(investment) %> <% end %>