mirror of https://github.com/snachodog/mybuddy.git
19 lines
601 B
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 %}
|