From 7b181559abea4c159d9391cbe159f8aac16b620a Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 17 Nov 2019 19:29:56 -0500 Subject: [PATCH] use more convoluted formatting method --- .../templates/commission/_directory_results.html.slime | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/commission/_directory_results.html.slime b/lib/philomena_web/templates/commission/_directory_results.html.slime index e200d0bc..09bacf01 100644 --- a/lib/philomena_web/templates/commission/_directory_results.html.slime +++ b/lib/philomena_web/templates/commission/_directory_results.html.slime @@ -25,7 +25,11 @@ elixir: p strong> Price Range: - = :io_lib.format("$~.2f - $~.2f USD", [min.base_price || 0.0, max.base_price || 0.0]) + | $ + => Decimal.round(min.base_price, 2) |> Decimal.to_string() + | - $ + => Decimal.round(max.base_price, 2) |> Decimal.to_string() + ' USD p strong> Categories: