исправил отображение номера картинки на главной

This commit is contained in:
Андрей Дувакин 2024-04-18 00:21:08 +05:00
parent 4f9b2e2d2b
commit 20fe040626

View File

@ -11,7 +11,7 @@
<div class="carousel-indicators">
{% for film in films_preview %}
<button type="button" data-bs-target="#carouselWhite" data-bs-slide-to="{{ forloop.counter0 }}"
class="active"
class="{% if forloop.counter0 == 0 %} active {% endif %}"
aria-current="true" aria-label="{{film.name|truncatewords_html:5}}"></button>
{% endfor %}
</div>