diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2a1845513..5937d59de 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -22,12 +22,12 @@ def format_datetime_timespec(time, format) def format_currency(amount) return nil if amount.nil? - class_name = amount < 0 ? 'negative_amout' : 'positive_amount' + class_name = amount < 0 ? 'negative_amount' : 'positive_amount' content_tag :span, number_to_currency(amount), class: class_name end def format_currency_difference(amount) - class_name = amount < 0 ? 'negative_amout' : 'positive_green' + class_name = amount < 0 ? 'negative_amount' : 'positive_green' content_tag :span, (amount > 0 ? '+' : '') + number_to_currency(amount), class: class_name end