mybuddy/dashboard/templates/cards/diaperchange_last.html

19 lines
601 B
HTML
Raw Permalink 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:diaperchange-list" %}">{% trans "Last Diaper Change" %}</a>
2021-08-04 20:36:00 +00:00
{% endblock %}
2017-08-18 15:00:58 +00:00
{% block title %}
{% if change %}
{% blocktrans trimmed with since=change.time|deltasince|duration_string:'m' time=change.time|time %}
2021-07-02 19:10:11 +00:00
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "None" %}
{% endif %}
2017-08-18 15:00:58 +00:00
{% endblock %}
{% block content %}
{% if change %}{{ change.attributes|join:', ' }}{% endif %}
{% endblock %}