mirror of https://github.com/snachodog/mybuddy.git
Do not render carousel controls for single item
This commit is contained in:
parent
4d34a48652
commit
18b61581b7
|
@ -22,6 +22,7 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if feedings|length > 1 %}
|
||||
<a class="carousel-control-prev" href="#feeding-methods-carousel" role="button" data-slide="prev">
|
||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||
<span class="sr-only">{% trans "Previous" %}</span>
|
||||
|
@ -30,6 +31,7 @@
|
|||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||
<span class="sr-only">{% trans "Next" %}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
{% trans "None" %}
|
||||
|
|
Loading…
Reference in New Issue