Files
Mangarr/templates/broadcast/Chapter.stream.html.twig
Jérémy Guillot 7fc2f15f6b Added:
- turbo-stream for Chapter updates
- progressbar for chapter scrapping
- minor optimisations
2024-07-17 20:20:19 +02:00

22 lines
655 B
Twig

{% block create %}
<turbo-stream action="prepend" target="volume-{{ entity.volume }}">
<template>
{% include 'manga/_chapter_row.html.twig' with { chapter: entity, manga: entity.manga } %}
</template>
</turbo-stream>
{% endblock %}
{% block update %}
<turbo-stream action="remove" target="activity-{{ entity.id }}"></turbo-stream>
<turbo-stream action="replace" target="chapter-{{ entity.id }}">
<template>
{% include 'manga/_chapter_row.html.twig' with { chapter: entity, manga: entity.manga } %}
</template>
</turbo-stream>
{% endblock %}
{% block remove %}
{% endblock %}