From 3073711ce3d0e0a6182e8976e62db5335b0884ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Reuiller?= Date: Wed, 18 Sep 2024 17:56:51 +0200 Subject: [PATCH] use header image as thumbnail --- lemarche/templates/cms/article_item.html | 9 ++------- .../templates/dashboard/_ressource_card.html | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lemarche/templates/cms/article_item.html b/lemarche/templates/cms/article_item.html index 31ae14f28..391d4e459 100644 --- a/lemarche/templates/cms/article_item.html +++ b/lemarche/templates/cms/article_item.html @@ -1,6 +1,5 @@ {% load wagtailimages_tags %} {% load inclusion_cms %} - diff --git a/lemarche/templates/dashboard/_ressource_card.html b/lemarche/templates/dashboard/_ressource_card.html index 50f219f24..ede7fe3cf 100644 --- a/lemarche/templates/dashboard/_ressource_card.html +++ b/lemarche/templates/dashboard/_ressource_card.html @@ -1,9 +1,7 @@ {% load static wagtailcore_tags wagtailimages_tags advert_cms %} - {% if user_kind == "BUYER" %} {% cms_advert layout="fr-card" %} {% endif %} -
@@ -18,15 +16,21 @@

{% for ressource in ressources %}
- {% if ressource.image %} - {% image ressource.image fill-100x60 as tmp_img %} - {{ tmp_img.alt }} + {% if ressource.header_image %} + {% image ressource.header_image fill-100x60 as tmp_img %} + {{ tmp_img.alt }} {% else %} {% endif %}
-
+ +
{{ ressource.title }}
@@ -36,7 +40,8 @@