diff options
| author | unwox <me@unwox.com> | 2024-10-22 10:54:42 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-10-22 10:54:42 +0600 |
| commit | b98f5858af010ea4c0f6a757410cd1c8ec72fa25 (patch) | |
| tree | ce1c7ee3ada8b1b816afd09eed3f5938cbac3cf8 | |
| parent | 477dd002b008db50361d9a87a12c6731cccb6b78 (diff) | |
hide description for products
| -rw-r--r-- | bin/serve.fnl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index d1be6be..51f5d6b 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -250,9 +250,7 @@ product.price-per (< 0 product.price-per)) [:NO-ESCAPE (.. " (" product.price-per "₽ за 1 гр.)")] - "")] - ;; FIXME: security issue - [:small {} [:NO-ESCAPE (unescape (str.truncate product.description 200))]]]) + "")]]) (fn paginator-template [form page limit total] (local last-page (math.ceil (/ total limit))) |
