<%= back_link_to session[:ballot_referer] %>

<%= t("budgets.ballots.show.title") %>

<%= sanitize(t("budgets.ballots.show.voted", count: ballot.investments.count)) %>

<%= t("budgets.ballots.show.voted_info") %>

<%= t("budgets.ballots.show.voted_info_2") %>

<% ballot_groups.each do |group| %> <% heading = ballot.heading_for_group(group) %>

<%= group.name %> - <%= heading.name %>

<%= link_to sanitize(ballot.amount_available_info(heading)), group_path(group) %>
<% if ballot.has_lines_in_group?(group) %>

<%= sanitize(ballot.amount_spent_info(heading)) %>

<% else %>

<%= t("budgets.ballots.show.zero") %>

<% end %>
    <%= render Budgets::Ballot::InvestmentComponent.with_collection(group_investments(group)) %>
<% end %> <% no_balloted_groups.each do |group| %>

<%= group.name %>

<%= link_to t("budgets.ballots.show.no_balloted_group_yet"), group_path(group) %>
<% end %>