diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c676b052d..486759e03 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -57,10 +57,6 @@ module ApplicationHelper SiteCustomization::ContentBlock.block_for(name, locale) end - def format_price(number) - number_to_currency(number, precision: 0, locale: I18n.locale) - end - def kaminari_path(url) "#{root_url.chomp("\/")}#{url}" end diff --git a/app/views/budgets/results/_results_table.html.erb b/app/views/budgets/results/_results_table.html.erb index ebd3c2b15..48983a858 100644 --- a/app/views/budgets/results/_results_table.html.erb +++ b/app/views/budgets/results/_results_table.html.erb @@ -21,7 +21,7 @@ <% if results_type == :compatible %> <%= t("budgets.results.amount_available") %>
- <%= format_price(heading_price) %>
+ <%= @budget.formatted_amount(heading_price) %>
<% end %> @@ -53,12 +53,12 @@ <%= investment.ballot_lines_count %> - <%= format_price investment.price %> + <%= @budget.formatted_amount(investment.price) %> <% if results_type == :compatible %> - <%= format_price amount_available - investment.price %> + title="<%= @budget.formatted_amount(amount_available) %> - <%= @budget.formatted_amount(investment.price) %>"> + <%= @budget.formatted_amount(amount_available - investment.price) %> <% amount_available -= investment.price if investment.winner? %> <% end %>