{% extends 'cards/base.html' %} {% load duration i18n %} {% block header %} {% trans "Last Feeding" %} {% endblock %} {% block title %} {% if feeding %} {% blocktrans trimmed with since=feeding.start|deltasince|duration_string:'m' time=feeding.start|time %}
{{ since }} ago
{{ time }} {% endblocktrans %} {% else %} {% trans "None" %} {% endif %} {% endblock %} {% block content %} {% if feeding %} {{ feeding.get_type_display }}, {{ feeding.get_method_display }} {% if feeding.amount %}({{ feeding.amount }}){% endif %} {% endif %} {% endblock %}