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,14 +22,16 @@
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<a class="carousel-control-prev" href="#feeding-methods-carousel" role="button" data-slide="prev">
|
{% if feedings|length > 1 %}
|
||||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
<a class="carousel-control-prev" href="#feeding-methods-carousel" role="button" data-slide="prev">
|
||||||
<span class="sr-only">{% trans "Previous" %}</span>
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||||
</a>
|
<span class="sr-only">{% trans "Previous" %}</span>
|
||||||
<a class="carousel-control-next" href="#feeding-methods-carousel" role="button" data-slide="next">
|
</a>
|
||||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
<a class="carousel-control-next" href="#feeding-methods-carousel" role="button" data-slide="next">
|
||||||
<span class="sr-only">{% trans "Next" %}</span>
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||||
</a>
|
<span class="sr-only">{% trans "Next" %}</span>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "None" %}
|
{% trans "None" %}
|
||||||
|
|
Loading…
Reference in New Issue