Switch from feasible to selected investments on budget stats

This commit is contained in:
Bertocq
2017-06-30 23:08:57 +02:00
committed by Javi Martín
parent f9e45dc2e2
commit 1f3bc2c8d9
4 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ class Budget
def generate
stats = %w[total_participants total_participants_support_phase total_participants_vote_phase total_budget_investments total_votes
total_feasible_investments total_unfeasible_investments total_male_participants total_female_participants total_supports
total_selected_investments total_unfeasible_investments total_male_participants total_female_participants total_supports
total_unknown_gender_or_age age_groups male_percentage female_percentage headings]
stats.map { |stat_name| [stat_name.to_sym, send(stat_name)] }.to_h
end

View File

@@ -53,9 +53,9 @@
<div class="small-12 medium-6 column">
<p>
<span class="label feasible"></span>&nbsp;
<span id="total_feasible_investments">
<span id="total_selected_investments">
<span class="uppercase"><strong><%= t("budgets.stats.total_selected_investments") %></strong></span>:
<%= @stats[:total_feasible_investments] %><br>
<%= @stats[:total_selected_investments] %><br>
</span>
<span class="label unfeasible"></span>&nbsp;