mybuddy/dashboard/templates/cards/diaperchange_last.html

23 lines
587 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load i18n %}
2017-08-18 15:00:58 +00:00
2021-08-04 20:36:00 +00:00
{% block header %}
<a href="{% url "core:diaperchange-list" %}">
{% trans "Last Diaper Change" %}
</a>
{% endblock %}
2017-08-18 15:00:58 +00:00
{% block title %}
{% if change %}
2021-07-02 19:10:11 +00:00
{% blocktrans trimmed with since=change.time|timesince time=change.time|time %}
<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 %}