<% if investment.image.exists? %> <%= image_tag investment.image.url(:thumb), title: investment.image_description, alt: investment.image_description, class: "th" %> <% else %> <% end %>
<% cache [locale_and_user_status(investment), 'index', investment, investment.author] do %>

<%= link_to investment.title, namespaced_budget_investment_path(investment) %>

<%= l investment.created_at.to_date %> <% if investment.author.hidden? || investment.author.erased? %>  •  <%= t("budgets.investments.show.author_deleted") %> <% else %>  •  <%= investment.author.name %> <% if investment.author.official? %>  •  <%= investment.author.official_position %> <% end %> <% end %>  •  <%= investment.heading.name %>

<%= investment.description %>

<%= render "shared/tags", taggable: investment, limit: 5 %> <% end %>
<% unless investment.unfeasible? %> <% if investment.should_show_votes? %>
<%= render partial: '/budgets/investments/votes', locals: { investment: investment, investment_votes: investment_votes, vote_url: namespaced_budget_investment_vote_path(investment, value: 'yes') } %>
<% elsif investment.should_show_vote_count? %>
<%= t("budgets.investments.investment.supports", count: investment.total_votes) %>
<% elsif investment.should_show_ballots? %>
<%= render partial: '/budgets/investments/ballot', locals: { investment: investment, investment_ids: investment_ids, ballot: ballot } %>
<% elsif investment.should_show_price? %>

<%= investment.formatted_price %>

<% end %> <% end %>