We had inconsistent indentation in many places. Now we're fixing them and adding a linter to our CI so we don't accidentally introduce inconsistent indentations again.
72 lines
1.8 KiB
Plaintext
72 lines
1.8 KiB
Plaintext
<% include_stat_graphs_javascript %>
|
|
|
|
<%= back_link_to budgets_admin_stats_path %>
|
|
|
|
<h2><%= budget.name %> - <%= t("admin.stats.budget_balloting.title") %></h2>
|
|
|
|
<div class="stats">
|
|
<div class="row stats-numbers">
|
|
<div class="small-12 medium-3 column">
|
|
<p class="featured">
|
|
<%= t("admin.stats.budget_balloting.vote_count") %>
|
|
<br>
|
|
<span id="total_votes_count" class="number">
|
|
<%= vote_count %>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="small-12 medium-6 column end">
|
|
<p>
|
|
<%= t("admin.stats.budget_balloting.participant_count") %>
|
|
<br>
|
|
<span id="total_participants_count" class="number">
|
|
<%= user_count %>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="investment-projects-summary">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2"><%= t("admin.stats.budget_balloting.votes_per_heading") %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% vote_count_by_heading.each do |heading_name, count| %>
|
|
<tr id="vote_count_<%= heading_name.parameterize %>">
|
|
<td class="name">
|
|
<%= heading_name %>
|
|
</td>
|
|
<td class="name">
|
|
<%= number_with_delimiter count %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="investment-projects-summary user-count-by-heading">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2"><%= t("admin.stats.budget_balloting.participants_per_district") %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% user_count_by_heading.each do |heading_name, count| %>
|
|
<tr id="user_count_<%= heading_name.parameterize %>">
|
|
<td class="name">
|
|
<%= heading_name %>
|
|
</td>
|
|
<td class="name">
|
|
<%= number_with_delimiter count %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|