diff options
| author | unwox <me@unwox.com> | 2025-10-14 12:31:01 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-14 12:31:01 +0600 |
| commit | 668aeb1730978c3712ed5a83f927e69e2b8e114c (patch) | |
| tree | 650f6cf5064e0bcadeb615b79c67e52532b19308 | |
| parent | 7f6c204322aa13dd8a9760b311955fc4b9a92637 (diff) | |
use thumbnails for basket and order lines
| -rw-r--r-- | pages/shop/index.fnl | 5 | ||||
| -rw-r--r-- | templates.fnl | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pages/shop/index.fnl b/pages/shop/index.fnl index 29d93b6..6b0f79b 100644 --- a/pages/shop/index.fnl +++ b/pages/shop/index.fnl @@ -95,9 +95,8 @@ [:aside {} (templates.header "/shop" authenticated?) (if (< 0 (# basket)) (templates.basket basket "/shop") "") - [:section {} - [:h2 {} "Условия"] - [:p {} ""]]]) + ;; [:section {} [:h2 {} "Условия"] [:p {} ""]] + ]) (HTML [:div {:class "content"} [:div {:class "back"} [:a {:href "/"} "⟵ Обратно на главную"]] diff --git a/templates.fnl b/templates.fnl index b80576c..5137acc 100644 --- a/templates.fnl +++ b/templates.fnl @@ -58,7 +58,8 @@ [:div {:class "basket-item"} [:div {:class "basket-item-image"} [:a {:href item-link :style "font-size: 0;"} - [:img {:src (.. "/static/files/" item.image1) :alt item.title}]]] + [:img {:src (.. "/static/files/" item.image1 "-thumbnail.jpg") + :alt item.title}]]] [:div {} [:a {:href item-link :class "basket-item-title"} item.title] [:div {:class "basket-item-price"} @@ -162,7 +163,7 @@ [:div {:class "order-line"} [:div {:class "order-line-image"} [:a {:href item-link :style "font-size: 0;"} - [:img {:src (.. "/static/files/" item.image1) + [:img {:src (.. "/static/files/" item.image1 "-thumbnail.jpg") :alt item.title}]]] [:div {} [:a {:href item-link :class "order-line-title"} item.title] |
