From da9e7057bc08b619e942bdaee53eb0470c1ee96b Mon Sep 17 00:00:00 2001 From: Fabienmcll Date: Thu, 13 Feb 2025 22:33:27 +0100 Subject: [PATCH] =?UTF-8?q?-=20Ajout=20d'une=20image=20par=20d=C3=A9faut?= =?UTF-8?q?=20lorsqu'il=20n'y=20en=20a=20aucune.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/apiSearch/index.html.twig | 17 ++++++++++------- templates/apiSearch/modal.html.twig | 6 ++++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/templates/apiSearch/index.html.twig b/templates/apiSearch/index.html.twig index d6feee5..872d9a0 100644 --- a/templates/apiSearch/index.html.twig +++ b/templates/apiSearch/index.html.twig @@ -24,12 +24,15 @@ {% endif %}
-
- {% if book.volumeInfo.imageLinks is defined and book.volumeInfo.imageLinks.smallThumbnail is defined %} - - {% endif %} -
-
+
+ {% if book.volumeInfo.imageLinks is defined and book.volumeInfo.imageLinks.smallThumbnail is defined %} + + {% else %} + + {% endif %} +
+ +
{% if book.volumeInfo.publisher is defined %}

Aux éditions : {{ book.volumeInfo.publisher }} @@ -192,7 +195,7 @@