{% extends 'base.html.twig' %} {% set authors_list = [] %} {% for author in work.authors %}{% set authors_list = authors_list|merge([author.name]) %}{% endfor %} {% block title %}Ajouter à une liste · {{ work.title }} · LivreComment{% endblock %} {% block app_header %} {% include 'components/_detail_header.html.twig' with { back_fallback: path('app_work_show', { publicId: work.publicId }), title: 'Livre' } only %} {% endblock %} {% block body %} {% for label, messages in app.flashes(['error', 'success']) %} {% endfor %} {% set cover_url = work_cover(work) %}
{% if cover_url %} Couverture de {{ work.title }} {% else %} {% endif %}

{{ work.title }}

{% if authors_list|length > 0 %}

{{ authors_list|join(', ') }}

{% endif %}

Ajouter à une liste

{% if custom_lists|length > 0 %}
{% for cl in custom_lists %} {% set in_list = cl.id in work_in_list_ids %}
{% endfor %}
{% else %}

Tu n'as pas encore de liste à toi. Crée-en une pour y ranger ce livre.

{% endif %} Nouvelle liste {% endblock %}