mybuddy/dashboard/templates/cards/diaperchange_last.html

19 lines
601 B
HTML

{% extends 'cards/base.html' %}
{% load duration i18n %}
{% block header %}
<a href="{% url "core:diaperchange-list" %}">{% trans "Last Diaper Change" %}</a>
{% endblock %}
{% block title %}
{% if change %}
{% blocktrans trimmed with since=change.time|deltasince|duration_string:'m' time=change.time|time %}
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "None" %}
{% endif %}
{% endblock %}
{% block content %}
{% if change %}{{ change.attributes|join:', ' }}{% endif %}
{% endblock %}