From 6aecb558ccdc9793a409d760eedc11871b035ed7 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 21 Jun 2017 01:32:09 +0200 Subject: [PATCH] Add Budget Investment winners filter on admin list view and controller --- app/controllers/admin/budget_investments_controller.rb | 2 +- app/views/admin/budget_investments/_investments.html.erb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/budget_investments_controller.rb b/app/controllers/admin/budget_investments_controller.rb index b47fd4e49..743faa166 100644 --- a/app/controllers/admin/budget_investments_controller.rb +++ b/app/controllers/admin/budget_investments_controller.rb @@ -3,7 +3,7 @@ class Admin::BudgetInvestmentsController < Admin::BaseController feature_flag :budgets has_filters(%w{valuation_open without_admin managed valuating valuation_finished - valuation_finished_feasible selected all}, + valuation_finished_feasible selected winners all}, only: [:index, :toggle_selection]) before_action :load_budget diff --git a/app/views/admin/budget_investments/_investments.html.erb b/app/views/admin/budget_investments/_investments.html.erb index 475b582f5..0c56e579c 100644 --- a/app/views/admin/budget_investments/_investments.html.erb +++ b/app/views/admin/budget_investments/_investments.html.erb @@ -12,6 +12,7 @@ <%= t("admin.budget_investments.index.table_feasibility") %> <%= t("admin.budget_investments.index.table_valuation_finished") %> <%= t("admin.budget_investments.index.table_selection") %> + <%= t("admin.budget_investments.index.table_winner") %> @@ -74,6 +75,9 @@ <% end %> <% end %> + + <%= investment.winner? ? t('shared.yes'): t('shared.no') %> + <% end %>