diff --git a/app/models/budget/investment.rb b/app/models/budget/investment.rb index c5d4d775d..dff2dd2e0 100644 --- a/app/models/budget/investment.rb +++ b/app/models/budget/investment.rb @@ -208,11 +208,11 @@ class Budget end def reason_for_not_being_ballotable_by(user, ballot) - return permission_problem(user) if permission_problem?(user) - return :not_selected unless selected? - return :no_ballots_allowed unless budget.balloting? - return :different_heading_assigned unless ballot.valid_heading?(heading) - return :not_enough_money_html if ballot.present? && !enough_money?(ballot) + return permission_problem(user) if permission_problem?(user) + return :not_selected unless selected? + return :no_ballots_allowed unless budget.balloting? + return :different_heading_assigned_html unless ballot.valid_heading?(heading) + return :not_enough_money_html if ballot.present? && !enough_money?(ballot) end def permission_problem(user) diff --git a/app/views/budgets/investments/_ballot.html.erb b/app/views/budgets/investments/_ballot.html.erb index 605caebc7..f65ec6c74 100644 --- a/app/views/budgets/investments/_ballot.html.erb +++ b/app/views/budgets/investments/_ballot.html.erb @@ -42,17 +42,31 @@ <% if reason.present? && !ballot.has_investment?(investment) %> -