Make product cards fully clickable
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
This commit is contained in:
@@ -25,8 +25,10 @@
|
||||
<div class="cart-items">
|
||||
{% for cart_item in cart_items %}
|
||||
{% with item=cart_item.item %}
|
||||
{% url 'detail' item.category.slug item.slug as item_url %}
|
||||
<article class="cart-item" data-auth-cart-item data-current-quantity="{{ cart_item.quantity }}">
|
||||
<a class="cart-item__media" href="{% url 'detail' item.category.slug item.slug %}">
|
||||
<a class="cart-item__overlay" href="{{ item_url }}" aria-label="Открыть товар {{ item.name }}" tabindex="-1" aria-hidden="true"></a>
|
||||
<a class="cart-item__media" href="{{ item_url }}">
|
||||
{% with primary_image=item.primary_image %}
|
||||
{% if primary_image %}
|
||||
<img src="{{ primary_image.image.url }}" alt="{{ primary_image.alt|default:item.name }}">
|
||||
@@ -37,7 +39,7 @@
|
||||
</a>
|
||||
|
||||
<div class="cart-item__info">
|
||||
<a class="cart-item__title" href="{% url 'detail' item.category.slug item.slug %}">{{ item.name }}</a>
|
||||
<a class="cart-item__title" href="{{ item_url }}">{{ item.name }}</a>
|
||||
{% if cart_item.selected_color %}
|
||||
<span class="cart-item__color">({{ cart_item.selected_color.name }})</span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user