diff options
| author | unwox <me@unwox.com> | 2024-10-09 10:49:19 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-10-09 10:49:19 +0600 |
| commit | 469a210832d2e89038a8732414aafe42f928a14f (patch) | |
| tree | cb3f79b361f7c08766f4128447bc063db30dc53e /bin/serve.fnl | |
| parent | af76f6151244bdccd745f86b1edca3038718b551 (diff) | |
integrate chaekshop.ru
Diffstat (limited to 'bin/serve.fnl')
| -rw-r--r-- | bin/serve.fnl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index eb56d8a..bec5a94 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -56,6 +56,11 @@ :alt "Логотип Железный Феникс"} [:img {:src "/static/clubcha.png"}] "Железный Феникс"] + (= name "chaekshop") + [:a {:class "site-icon" :href "https://chaekshop.ru" + :alt "Логотип Интернет-магазин фермерского китайского чая «Чаёк»"} + [:img {:src "/static/chaekshop.svg"}] + "Интернет-магазин «Чаёк»"] "")) (fn item-template [product] @@ -75,7 +80,8 @@ (< 0 product.price-per)) [:NO-ESCAPE (.. " (" product.price-per "₽ за 1 гр.)")] "")] - [:small {} (unescape (str.truncate product.description 200))]]) + ;; FIXME: security issue + [:small {} [:NO-ESCAPE (unescape (str.truncate product.description 200))]]]) (fn paginator-template [query page limit total] (local last-page (math.ceil (/ total limit))) @@ -120,7 +126,7 @@ :alt "Логотип meicha.ru" :title "Логотип meicha.ru"}]) [:form {:class "form"} [:input {:type :search :name :query :value query - :autofocus true :placeholder "Введите поисковый запрос"}] + :autofocus true :placeholder "Поисковый запрос"}] [:button {:type :submit} "Искать"]] paginator]] [:section {} |
