2017-10-29 03:01:39 +00:00
|
|
|
{% extends 'cards/base.html' %}
|
2019-04-14 15:40:08 +00:00
|
|
|
{% load i18n %}
|
2017-08-25 21:39:10 +00:00
|
|
|
|
2019-04-14 15:40:08 +00:00
|
|
|
{% block header %}{% trans "Last Feeding Method" %}{% endblock %}
|
2017-08-25 21:39:10 +00:00
|
|
|
|
|
|
|
{% block title %}
|
2020-02-15 21:34:57 +00:00
|
|
|
{% if feedings|length > 0 %}
|
|
|
|
<div id="feeding-methods-carousel" class="carousel slide" data-interval="false">
|
|
|
|
<div class="carousel-inner">
|
|
|
|
{% for feeding in feedings %}
|
|
|
|
<div class="carousel-item{% if forloop.counter == feedings|length %} active{% endif %}">
|
|
|
|
<div class="display-4 text-center">{{ feeding.get_method_display }}</div>
|
|
|
|
<div class="text-center small text-muted">
|
|
|
|
{% if forloop.last %}
|
|
|
|
{% trans "most recent" %}
|
|
|
|
{% else %}
|
|
|
|
{% blocktrans trimmed with n=forloop.revcounter0 plural=forloop.revcounter0|pluralize %}
|
|
|
|
{{ n }} feeding{{ plural }} ago
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<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>
|
|
|
|
</a>
|
|
|
|
<a class="carousel-control-next" href="#feeding-methods-carousel" role="button" data-slide="next">
|
|
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">{% trans "Next" %}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-10-28 00:12:39 +00:00
|
|
|
{% else %}
|
2019-04-14 15:40:08 +00:00
|
|
|
{% trans "None" %}
|
2017-10-28 00:12:39 +00:00
|
|
|
{% endif %}
|
2020-02-15 21:34:57 +00:00
|
|
|
|
2017-10-24 00:07:45 +00:00
|
|
|
{% endblock %}
|