From 2d7b8bc8df0b124567a9aa0e0e5fa1924b8a33a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 11 Jan 2019 20:14:37 +0100 Subject: [PATCH] Use new design for advanced budget stats --- app/views/budgets/stats/show.html.erb | 9 ++++----- config/locales/en/stats.yml | 10 +++++----- config/locales/es/stats.yml | 10 +++++----- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/app/views/budgets/stats/show.html.erb b/app/views/budgets/stats/show.html.erb index 0c55ae9b7..c605ba4be 100644 --- a/app/views/budgets/stats/show.html.erb +++ b/app/views/budgets/stats/show.html.erb @@ -49,7 +49,7 @@ <%= link_to t("stats.budgets.total_investments"), "#total_investments"%>
  • - <%= link_to t("stats.budgets.total_participants_support_phase"), "#stats_by_phase"%> + <%= link_to t("stats.budgets.by_phase"), "#stats_by_phase"%>
  • <%= link_to t("stats.budgets.by_heading"), "#stats_by_heading"%> @@ -72,15 +72,14 @@ 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], t("stats.budgets.total_unfeasible_investments")) %> + <%= number_with_info_tags(@stats[:total_selected_investments], + t("stats.budgets.total_selected_investments")) %>
    -

    <%= t("stats.budgets.total_participants_support_phase") %>

    +

    <%= t("stats.budgets.by_phase") %>

    <%= number_with_info_tags(@stats[:total_participants_support_phase], t("stats.budgets.participants")) %> diff --git a/config/locales/en/stats.yml b/config/locales/en/stats.yml index 9c92ebd10..68bb5144c 100644 --- a/config/locales/en/stats.yml +++ b/config/locales/en/stats.yml @@ -19,15 +19,15 @@ en: budgets: link: "Stats" page_title: "%{budget} - Participation stats" - total_investments: "Total proposed investments" - total_selected_investments: "Proposals on final phase" - total_unfeasible_investments: "Unfeasible proposals" - total_participants_support_phase: "Support phase" + total_investments: "Total investment projects" + total_selected_investments: "Projects in final voting phase" + total_unfeasible_investments: "Unfeasible projects" + by_phase: "Participants by phase" total_participants_web: "Vote phase web participants" total_participants_booths: "Vote phase booth participants" participants: "Participants" supports: "Supports" - by_heading: "Participants by heading" + by_heading: "Participants by phase and heading" total: "Total" heading: "Heading" investments_sent_html: "Investment proposals sent" diff --git a/config/locales/es/stats.yml b/config/locales/es/stats.yml index 993db1fb9..b42af056f 100644 --- a/config/locales/es/stats.yml +++ b/config/locales/es/stats.yml @@ -19,15 +19,15 @@ es: budgets: link: "Estadísticas" page_title: "%{budget} - Estadísticas de participación" - total_investments: "Total propuestas enviadas" - total_selected_investments: "Propuestas en la fase final" - total_unfeasible_investments: "Propuestas inviables" - total_participants_support_phase: "Fase de apoyos" + total_investments: "Total proyectos de gasto" + total_selected_investments: "Proyectos en la fase final" + total_unfeasible_investments: "Proyectos inviables" + by_phase: "Participación por fases" total_participants_web: "Participantes web en votación final" total_participants_booths: "Participantes en urnas votación final" participants: "Participantes" supports: "Apoyos" - by_heading: "Participación por distritos" + by_heading: "Participación por distritos y fase" total: "Total" heading: "Distrito" investments_sent_html: "Propuestas
    enviadas"