Switch from feasible to selected investments on budget stats
This commit is contained in:
@@ -7,7 +7,7 @@ class Budget
|
|||||||
|
|
||||||
def generate
|
def generate
|
||||||
stats = %w[total_participants total_participants_support_phase total_participants_vote_phase total_budget_investments total_votes
|
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]
|
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
|
stats.map { |stat_name| [stat_name.to_sym, send(stat_name)] }.to_h
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -53,9 +53,9 @@
|
|||||||
<div class="small-12 medium-6 column">
|
<div class="small-12 medium-6 column">
|
||||||
<p>
|
<p>
|
||||||
<span class="label feasible"></span>
|
<span class="label feasible"></span>
|
||||||
<span id="total_feasible_investments">
|
<span id="total_selected_investments">
|
||||||
<span class="uppercase"><strong><%= t("budgets.stats.total_selected_investments") %></strong></span>:
|
<span class="uppercase"><strong><%= t("budgets.stats.total_selected_investments") %></strong></span>:
|
||||||
<%= @stats[:total_feasible_investments] %><br>
|
<%= @stats[:total_selected_investments] %><br>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="label unfeasible"></span>
|
<span class="label unfeasible"></span>
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ en:
|
|||||||
page_title: "%{budget} - Participation stats"
|
page_title: "%{budget} - Participation stats"
|
||||||
total_participants: Total Participants
|
total_participants: Total Participants
|
||||||
total_budget_investments: Total Proposed Investments
|
total_budget_investments: Total Proposed Investments
|
||||||
total_feasible_investments: Proposals on final phase
|
total_selected_investments: Proposals on final phase
|
||||||
total_unfeasible_investments: Unfeasible proposals
|
total_unfeasible_investments: Unfeasible proposals
|
||||||
total_participants_support_phase: Support phase
|
total_participants_support_phase: Support phase
|
||||||
participants: Participants
|
participants: Participants
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ es:
|
|||||||
page_title: "%{budget} - Estadísticas de participación"
|
page_title: "%{budget} - Estadísticas de participación"
|
||||||
total_participants: Total participantes
|
total_participants: Total participantes
|
||||||
total_budget_investments: Total propuestas enviadas
|
total_budget_investments: Total propuestas enviadas
|
||||||
total_feasible_investments: Propuestas en la fase final
|
total_selected_investments: Propuestas en la fase final
|
||||||
total_unfeasible_investments: Propuestas inviables
|
total_unfeasible_investments: Propuestas inviables
|
||||||
total_participants_support_phase: Fase de apoyos
|
total_participants_support_phase: Fase de apoyos
|
||||||
participants: Participantes
|
participants: Participantes
|
||||||
|
|||||||
Reference in New Issue
Block a user