diff --git a/app/helpers/budgets_helper.rb b/app/helpers/budgets_helper.rb index b4717fbdf..179d83ba8 100644 --- a/app/helpers/budgets_helper.rb +++ b/app/helpers/budgets_helper.rb @@ -60,6 +60,10 @@ module BudgetsHelper Budget::Investment.by_budget(budget).tags_on(:valuation).order(:name).select(:name).distinct end + def unfeasible_or_unselected_filter + ["unselected", "unfeasible"].include?(@current_filter) + end + def budget_published?(budget) !budget.drafting? || current_user&.administrator? end diff --git a/app/views/budgets/index.html.erb b/app/views/budgets/index.html.erb index 9b0dd66f9..dfc656a42 100644 --- a/app/views/budgets/index.html.erb +++ b/app/views/budgets/index.html.erb @@ -72,8 +72,9 @@