From 0768bf14a4e2a2b8689e8f436fbade0f8afc32b6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 14 Oct 2016 16:55:11 +0200 Subject: [PATCH] Fix 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 45697021..39bf24f1 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