From 668aeb1730978c3712ed5a83f927e69e2b8e114c Mon Sep 17 00:00:00 2001 From: unwox Date: Tue, 14 Oct 2025 12:31:01 +0600 Subject: use thumbnails for basket and order lines --- pages/shop/index.fnl | 5 ++--- 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] -- cgit v1.2.3