From afe0936b3e0519f612e9259ce5f4d12936c08ba1 Mon Sep 17 00:00:00 2001 From: NikDizell Date: Fri, 19 Jun 2026 16:47:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B4=D1=83=D0=BA=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- products/static/products/css/products.css | 4 ++++ products/templates/products/product_list.html | 23 ++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/products/static/products/css/products.css b/products/static/products/css/products.css index 2478af1..0ac846a 100644 --- a/products/static/products/css/products.css +++ b/products/static/products/css/products.css @@ -287,4 +287,8 @@ flex-direction: column; align-items: flex-start; } +} + +.product-card { + cursor: pointer; } \ No newline at end of file diff --git a/products/templates/products/product_list.html b/products/templates/products/product_list.html index be70949..a4c5d7e 100644 --- a/products/templates/products/product_list.html +++ b/products/templates/products/product_list.html @@ -1,5 +1,6 @@ {% extends 'programmer/base.html' %} {% load static %} +{% load django_bootstrap5 %} {% block extra_css %} {# Единый файл для CKEditor-контента (общий с блогом) #} @@ -38,7 +39,7 @@ {# ===== Сетка продуктов ===== #}
{% for product in products %} -
+
{% if product.image %} {{ product.title }} {% else %} @@ -85,3 +86,23 @@ {% include 'products/includes/pagination.html' %} {% endblock %} + +{% block extra_js %} + +{% endblock %}