{% extends 'base.html.twig' %} {% block toolbar %}
{% endblock %} {% block body %}

{{ manga.title }}

{{ manga.publicationYear }} Chapters: {{ manga.chapters.count }}
/media/mangas/{{ manga.title }} ({{ manga.publicationYear }}) {{ manga.status ?? 'Terminé' }}
{% set genre_count = 0 %} {% for genre in manga.genres %} {% if genre_count < 5 %} {{ genre }} {% set genre_count = genre_count + 1 %} {% endif %} {% endfor %} {% if genre_count == 5 and manga.genres|length > 5 %} ... {% endif %}
{{ manga.rating|round(2) }}

{{ manga.description|truncate(500) }}

{% for volume, chapters in chapters_by_volume %} {% set non_null_chapters = chapters|filter(chapter => chapter.localPath is not null) %} {% set total_chapters = chapters|length %}

Volume {{ volume }}

{{ non_null_chapters|length }} / {{ total_chapters }}
{{ chapters|length }} Chapters
{% for chapter in chapters %} {% if chapter.localPath is not null %} {% else %} {% endif %} {% endfor %}
# Title Actions
{{ chapter.number }} {{ chapter.number }} {% if chapter.localPath is not null %} {{ chapter.title ?? 'No title' }} {% else %} {{ chapter.title ?? 'No title' }} {% endif %} {% if chapter.localPath is null %} {% else %} {% endif %} {# #} {# #} {# #}
{% endfor %}
{% endblock %}