In some places, we accidentally opened the same tag twice instead of closing it, while in some other places we closed a tag without opening it in the first place. We've detected these issues thanks to the HTML Beautifier gem, which we're about to start using for indentation purposes.
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
<header>
|
|
<%= back_link_to session[:ballot_referer] %>
|
|
|
|
<h1 class="text-center"><%= t("budgets.ballots.show.title") %></h1>
|
|
|
|
<div class="small-12 medium-8 column small-centered text-center">
|
|
<h2>
|
|
<%= sanitize(t("budgets.ballots.show.voted", count: ballot.investments.count)) %>
|
|
</h2>
|
|
<p class="confirmed">
|
|
<%= t("budgets.ballots.show.voted_info") %>
|
|
</p>
|
|
<p><%= t("budgets.ballots.show.voted_info_2") %></p>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="row ballot">
|
|
<% ballot_groups.each do |group| %>
|
|
<% heading = ballot.heading_for_group(group) %>
|
|
<div id="<%= dom_id(group) %>" class="small-12 medium-6 column end">
|
|
<div class="margin-top ballot-content">
|
|
<div class="subtitle">
|
|
<h3>
|
|
<%= group.name %> - <%= heading.name %>
|
|
</h3>
|
|
<%= link_to sanitize(ballot.amount_available_info(heading)), group_path(group) %>
|
|
</div>
|
|
<% if ballot.has_lines_in_group?(group) %>
|
|
<h4 class="amount-spent text-right">
|
|
<%= sanitize(ballot.amount_spent_info(heading)) %>
|
|
</h4>
|
|
<% else %>
|
|
<p>
|
|
<%= t("budgets.ballots.show.zero") %><br>
|
|
</p>
|
|
<% end %>
|
|
|
|
<ul class="ballot-list">
|
|
<%= render Budgets::Ballot::InvestmentComponent.with_collection(group_investments(group)) %>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% no_balloted_groups.each do |group| %>
|
|
<div id="<%= dom_id(group) %>" class="small-12 medium-6 column end">
|
|
<div class="margin-top ballot-content">
|
|
<div class="subtitle">
|
|
<h3>
|
|
<%= group.name %>
|
|
</h3>
|
|
<%= link_to t("budgets.ballots.show.no_balloted_group_yet"), group_path(group) %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|