From 1fb3c16efe9c6439bec92c5adff27f344c2228e6 Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 9 May 2018 16:02:32 +0200 Subject: [PATCH] Adds see results button on budget investment admin --- app/views/admin/budget_investments/index.html.erb | 6 ++++++ config/locales/en/admin.yml | 1 + config/locales/es/admin.yml | 1 + 3 files changed, 8 insertions(+) diff --git a/app/views/admin/budget_investments/index.html.erb b/app/views/admin/budget_investments/index.html.erb index 4548e47c0..f2672f564 100644 --- a/app/views/admin/budget_investments/index.html.erb +++ b/app/views/admin/budget_investments/index.html.erb @@ -1,3 +1,9 @@ +
+ <%= link_to t("admin.budget_investments.index.see_results"), + budget_results_path(current_budget, heading_id: current_budget.headings.first), + class: "button hollow medium", target: "_blank" %> +
+

<%= @budget.name %> - <%= t("admin.budget_investments.index.title") %>

<%= render "search_form" %> diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index adb0f727f..cf9d03cb3 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -192,6 +192,7 @@ en: table_evaluation: "Show to valuators" table_incompatible: "Incompatible" cannot_calculate_winners: The budget has to stay on phase "Balloting projects", "Reviewing Ballots" or "Finished budget" in order to calculate winners projects + see_results: "See results" show: assigned_admin: Assigned administrator assigned_valuators: Assigned valuators diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index aed1d068a..6dca3bfec 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -192,6 +192,7 @@ es: table_evaluation: "Mostrar a evaluadores" table_incompatible: "Incompatible" cannot_calculate_winners: El presupuesto debe estar en las fases "Votación final", "Votación finalizada" o "Resultados" para poder calcular las propuestas ganadoras + see_results: "Ver resultados" show: assigned_admin: Administrador asignado assigned_valuators: Evaluadores asignados