mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
use more convoluted formatting method
This commit is contained in:
parent
2a70035a19
commit
7b181559ab
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ elixir:
|
||||||
|
|
||||||
p
|
p
|
||||||
strong> Price Range:
|
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
|
p
|
||||||
strong> Categories:
|
strong> Categories:
|
||||||
|
|
Loading…
Reference in a new issue