mybuddy/dashboard/templates/cards/feeding_last.html

24 lines
577 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 %}
{% blocktrans trimmed with time=feeding.start|timesince %}
{{ time }} ago
{% endblocktrans %}
{% else %}
{% trans "Never" %}
{% endif %}
{% endblock %}
{% block content %}
{% if feeding %}
{{ feeding.get_type_display }}, {{ feeding.get_method_display }}
{% if feeding.amount %}
({{ feeding.amount }})
{% endif %}
{% endif %}
{% endblock %}