diff --git a/templates/apiSearch/index.html.twig b/templates/apiSearch/index.html.twig index fc3a67b..aea06b1 100644 --- a/templates/apiSearch/index.html.twig +++ b/templates/apiSearch/index.html.twig @@ -6,16 +6,48 @@
-

Recherche de livre pour {{ query }}

+
+

Recherche de livre pour : {{ query }}

+
{% for book in datas.items %} -
-
-

{{ book.volumeInfo.title }}

+
+
+
+

{{ book.volumeInfo.title }}

+ {% if book.volumeInfo.authors is defined %} + {{ book.volumeInfo.authors | join(", ") }} + {% endif %} +
+
+
+ {% if book.volumeInfo.imageLinks is defined and book.volumeInfo.imageLinks.smallThumbnail is defined %} + + {% endif %} +
+
+ {% if book.volumeInfo.publisher is defined %} +

Aux éditions : {{ book.volumeInfo.publisher }}

+

Date de publication : {{ book.volumeInfo.publishedDate }}

+ {% if book.volumeInfo.categories is defined %} + {% for categorie in book.volumeInfo.categories %} +

Catégorie : {{ categorie }}

+ {% endfor %} + {% endif %} +

Nombres de pages : {{ book.volumeInfo.pageCount }}

+

Description : {{ book.searchInfo.textSnippet }}

+ {% endif %} +
+
+
- {% if book.volumeInfo.imageLinks is defined and book.volumeInfo.imageLinks.smallThumbnail is defined %} - - {% endif %} - + + + +
+ +