mirror of https://github.com/snachodog/mybuddy.git
22 lines
706 B
HTML
22 lines
706 B
HTML
{% extends 'cards/base.html' %}
|
|
{% load duration i18n %}
|
|
{% 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 %}
|
|
<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 %}
|