diff --git a/app/views/budgets/ballot/_progress_bar.html.erb b/app/views/budgets/ballot/_progress_bar.html.erb index a068016ba..f556ee10f 100644 --- a/app/views/budgets/ballot/_progress_bar.html.erb +++ b/app/views/budgets/ballot/_progress_bar.html.erb @@ -1,24 +1,24 @@ - <%= sanitize(@ballot.amount_limit_info(@heading)) %> + <%= sanitize(ballot.amount_limit_info(heading)) %>
- <%= t("budgets.progress_bar.assigned") %><%= @ballot.formatted_amount_spent(@heading) %> + <%= t("budgets.progress_bar.assigned") %><%= ballot.formatted_amount_spent(heading) %> <%= t("budgets.progress_bar.available") %> - <%= @ballot.formatted_amount_available(@heading) %> + <%= ballot.formatted_amount_available(heading) %>
diff --git a/app/views/budgets/ballot/lines/create.js.erb b/app/views/budgets/ballot/lines/create.js.erb index e6569e69a..48e56054f 100644 --- a/app/views/budgets/ballot/lines/create.js.erb +++ b/app/views/budgets/ballot/lines/create.js.erb @@ -1,4 +1,4 @@ -$("#progress_bar").html("<%= j render("/budgets/ballot/progress_bar", ballot: @ballot) %>"); +$("#progress_bar").html("<%= j render("/budgets/ballot/progress_bar", ballot: @ballot, heading: @heading) %>"); $("#sidebar").html("<%= j render("/budgets/investments/sidebar") %>"); <%= render "refresh_ballots", diff --git a/app/views/budgets/ballot/lines/destroy.js.erb b/app/views/budgets/ballot/lines/destroy.js.erb index 106cac60d..c93517414 100644 --- a/app/views/budgets/ballot/lines/destroy.js.erb +++ b/app/views/budgets/ballot/lines/destroy.js.erb @@ -1,4 +1,4 @@ -$("#progress_bar").html("<%= j render("budgets/ballot/progress_bar", ballot: @ballot) %>"); +$("#progress_bar").html("<%= j render("budgets/ballot/progress_bar", ballot: @ballot, heading: @heading) %>"); $("#sidebar").html("<%= j render("budgets/investments/sidebar") %>"); $("#ballot").html("<%= j render("budgets/ballot/ballot") %>") diff --git a/app/views/budgets/investments/_header.html.erb b/app/views/budgets/investments/_header.html.erb index a5c63f160..0b18c3e1f 100644 --- a/app/views/budgets/investments/_header.html.erb +++ b/app/views/budgets/investments/_header.html.erb @@ -27,7 +27,7 @@ <%= t("budgets.investments.index.by_heading", heading: @heading.name) %>