mybuddy/dashboard/templates/cards/feeding_last.html

25 lines
651 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load i18n %}
{% block header %}{% trans "Last Feeding" %}{% endblock %}
{% block title %}
{% if feeding %}
2021-07-02 19:10:11 +00:00
{% blocktrans trimmed with since=feeding.start|timesince time=feeding.start|time %}
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% 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 %}