diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/serve.fnl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index 884fb4f..06ecd22 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -299,14 +299,15 @@ [:a {:href link :style "text-decoration: none;" :rel "nofollow"} [:NO-ESCAPE (.. "<h2>" (unescape product.title) "</h2>")]] [:div {:class "price"} - (if product.price (.. product.price "₽") "") + (if product.price (.. (str.format-price product.price) "₽") "") (if (< 0 product.weight) [:NO-ESCAPE (.. "за " product.weight " гр.")] "") (if (and (< 1 product.weight) product.price-per (< 0 product.price-per)) - [:NO-ESCAPE (.. " (" product.price-per "₽ за 1 гр.)")] + [:NO-ESCAPE (.. "<br> (" (str.format-price product.price-per) + "₽ за 1 гр.)")] "")]]) (fn paginator-template [form page limit total] |
