mirror of https://github.com/snachodog/mybuddy.git
29 lines
715 B
HTML
29 lines
715 B
HTML
{% extends 'cards/base.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block header %}
|
|
<a href="{% url "core:feeding-list" %}">
|
|
{% trans "Last Feeding" %}
|
|
</a>
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
{% if feeding %}
|
|
{% 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 %}
|