<% if investment.image.present? %>
<%= image_tag investment.image.variant(:large), alt: investment.image.title.unicode_normalize %>
<% else %>
<%= image_tag(image_path_for("budget_investment_no_image.jpg"), alt: investment.title) %>
<% end %>
<% if investment.should_show_vote_count? || investment.should_show_price? %>
<% if investment.should_show_vote_count? %>
<%= t("budgets.investments_list.investment.supports") %>
<%= investment.total_votes %>
<% end %>
<% if investment.should_show_price? %>
<%= t("budgets.investments_list.investment.price") %>
<%= investment.formatted_price %>
<% end %>
<% end %>
<% cache [locale_and_user_status(investment), "index", investment, investment.author] do %>
<%= link_to investment.title, namespaced_budget_investment_path(investment) %>
<%= render Budgets::Investments::InfoComponent.new(investment) %>
<%= link_to namespaced_budget_investment_path(investment), class: "read-more" do %>
<%= t("budgets.investments_list.investment.read_more") %>
<% end %>
<% end %>