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 @@