From 6b5115c555bf0b02fa4884e38cd5ced3b0650312 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 7 Oct 2016 17:56:05 +0200 Subject: [PATCH] Fix product links --- .../includes/product_list_square_style.html | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/app/templates/shop/includes/product_list_square_style.html b/app/templates/shop/includes/product_list_square_style.html index d0e75d6f..90877fdd 100644 --- a/app/templates/shop/includes/product_list_square_style.html +++ b/app/templates/shop/includes/product_list_square_style.html @@ -17,27 +17,29 @@
{% for product_inline in list.products.all %} {% with product_inline.product as product %} -
-
- {% if product.images.all %} -
- -
- product -
-
-
- {% endif %} -
-

{{ product.title }}

- {% if product.description %} -
{{ product.description|richtext_filters|safe|truncatechars_html:255 }}
- {% elif product.content %} -
{{ product.content|richtext_filters|safe|truncatechars_html:255 }}
+ {% with product.links.all|get_type_link:"link" as links %} +
+
+ {% if product.images.all %} +
+ +
+ product +
+
+
{% endif %} +
+

{{ product.title }}

+ {% if product.description %} +
{{ product.description|richtext_filters|safe|truncatechars_html:255 }}
+ {% elif product.content %} +
{{ product.content|richtext_filters|safe|truncatechars_html:255 }}
+ {% endif %} +
-
+ {% endwith %} {% endwith %} {% endfor %}
-- 2.39.5