Add bs namespace to card controls

Fixes #680
This commit is contained in:
Christopher C. Wells 2023-07-17 06:50:09 -07:00
parent 523c52ef93
commit 253d417eef
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
{% block title %} {% block title %}
{% if sleeps|length > 0 %} {% if sleeps|length > 0 %}
<div id="sleep-days-carousel" class="carousel slide" data-interval="false"> <div id="sleep-days-carousel" class="carousel slide" data-bs-interval="false">
<div class="carousel-inner"> <div class="carousel-inner">
{% for sleep in sleeps %} {% for sleep in sleeps %}
<div class="carousel-item{% if forloop.counter == 1 %} active{% endif %}"> <div class="carousel-item{% if forloop.counter == 1 %} active{% endif %}">
@ -38,11 +38,11 @@
{% endfor %} {% endfor %}
</div> </div>
{% if sleeps|length > 1 %} {% if sleeps|length > 1 %}
<a class="carousel-control-prev" href="#sleep-days-carousel" role="button" data-slide="prev"> <a class="carousel-control-prev" href="#sleep-days-carousel" role="button" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">{% trans "Previous" %}</span> <span class="visually-hidden">{% trans "Previous" %}</span>
</a> </a>
<a class="carousel-control-next" href="#sleep-days-carousel" role="button" data-slide="next"> <a class="carousel-control-next" href="#sleep-days-carousel" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">{% trans "Next" %}</span> <span class="visually-hidden">{% trans "Next" %}</span>
</a> </a>