- Ajout des favoris
This commit is contained in:
19
templates/favoris/index.html.twig
Normal file
19
templates/favoris/index.html.twig
Normal file
@ -0,0 +1,19 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Mes favoris{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div>
|
||||
{% for data in datas %}
|
||||
{% if data.items is defined %}
|
||||
{% for book in data.items %}
|
||||
{% if book.volumeInfo.authors is defined %}
|
||||
<p>{{ book.volumeInfo.title }} - {{ book.volumeInfo.authors | join(", ") }} </p>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user