Use new design for advanced budget stats

This commit is contained in:
Javi Martín
2019-01-11 20:14:37 +01:00
parent 6ad3bc063c
commit 2d7b8bc8df
3 changed files with 14 additions and 15 deletions

View File

@@ -49,7 +49,7 @@
<%= link_to t("stats.budgets.total_investments"), "#total_investments"%> <%= link_to t("stats.budgets.total_investments"), "#total_investments"%>
</li> </li>
<li> <li>
<%= link_to t("stats.budgets.total_participants_support_phase"), "#stats_by_phase"%> <%= link_to t("stats.budgets.by_phase"), "#stats_by_phase"%>
</li> </li>
<li> <li>
<%= link_to t("stats.budgets.by_heading"), "#stats_by_heading"%> <%= link_to t("stats.budgets.by_heading"), "#stats_by_heading"%>
@@ -72,15 +72,14 @@
html_class: "total-investments" html_class: "total-investments"
) %> ) %>
<%= number_with_info_tags(@stats[:total_selected_investments],
t("stats.budgets.total_selected_investments")) %>
<%= number_with_info_tags(@stats[:total_unfeasible_investments], <%= number_with_info_tags(@stats[:total_unfeasible_investments],
t("stats.budgets.total_unfeasible_investments")) %> t("stats.budgets.total_unfeasible_investments")) %>
<%= number_with_info_tags(@stats[:total_selected_investments],
t("stats.budgets.total_selected_investments")) %>
</div> </div>
<div id="stats_by_phase" class="stats-group"> <div id="stats_by_phase" class="stats-group">
<h4><%= t("stats.budgets.total_participants_support_phase") %></h4> <h4><%= t("stats.budgets.by_phase") %></h4>
<%= number_with_info_tags(@stats[:total_participants_support_phase], <%= number_with_info_tags(@stats[:total_participants_support_phase],
t("stats.budgets.participants")) %> t("stats.budgets.participants")) %>

View File

@@ -19,15 +19,15 @@ en:
budgets: budgets:
link: "Stats" link: "Stats"
page_title: "%{budget} - Participation stats" page_title: "%{budget} - Participation stats"
total_investments: "Total proposed investments" total_investments: "Total investment projects"
total_selected_investments: "Proposals on final phase" total_selected_investments: "Projects in final voting phase"
total_unfeasible_investments: "Unfeasible proposals" total_unfeasible_investments: "Unfeasible projects"
total_participants_support_phase: "Support phase" by_phase: "Participants by phase"
total_participants_web: "Vote phase web participants" total_participants_web: "Vote phase web participants"
total_participants_booths: "Vote phase booth participants" total_participants_booths: "Vote phase booth participants"
participants: "Participants" participants: "Participants"
supports: "Supports" supports: "Supports"
by_heading: "Participants by heading" by_heading: "Participants by phase and heading"
total: "Total" total: "Total"
heading: "Heading" heading: "Heading"
investments_sent_html: "Investment proposals sent" investments_sent_html: "Investment proposals sent"

View File

@@ -19,15 +19,15 @@ es:
budgets: budgets:
link: "Estadísticas" link: "Estadísticas"
page_title: "%{budget} - Estadísticas de participación" page_title: "%{budget} - Estadísticas de participación"
total_investments: "Total propuestas enviadas" total_investments: "Total proyectos de gasto"
total_selected_investments: "Propuestas en la fase final" total_selected_investments: "Proyectos en la fase final"
total_unfeasible_investments: "Propuestas inviables" total_unfeasible_investments: "Proyectos inviables"
total_participants_support_phase: "Fase de apoyos" by_phase: "Participación por fases"
total_participants_web: "Participantes web en votación final" total_participants_web: "Participantes web en votación final"
total_participants_booths: "Participantes en urnas votación final" total_participants_booths: "Participantes en urnas votación final"
participants: "Participantes" participants: "Participantes"
supports: "Apoyos" supports: "Apoyos"
by_heading: "Participación por distritos" by_heading: "Participación por distritos y fase"
total: "Total" total: "Total"
heading: "Distrito" heading: "Distrito"
investments_sent_html: "Propuestas<br>enviadas" investments_sent_html: "Propuestas<br>enviadas"