mybuddy/dashboard/templates/cards/feeding_last.html

29 lines
745 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load duration i18n %}
2021-08-04 20:36:00 +00:00
{% block header %}
<a href="{% url "core:feeding-list" %}">
{% trans "Last Feeding" %}
</a>
{% endblock %}
{% block title %}
{% if feeding %}
{% blocktrans trimmed with since=feeding.start|deltasince|duration_string:'m' time=feeding.start|time %}
2021-07-02 19:10:11 +00:00
<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 %}