mybuddy/dashboard/templates/cards/tummytime_last.html

29 lines
748 B
HTML
Raw 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:tummytime-list" %}">
{% trans "Last Tummy Time" %}
</a>
{% endblock %}
{% block title %}
{% if tummytime %}
{% blocktrans trimmed with since=tummytime.time|deltasince|duration_string:'m' time=tummytime.time|time %}
2021-07-02 19:10:11 +00:00
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "Never" %}
{% endif %}
{% endblock %}
{% block content %}
{% if tummytime %}
{{ tummytime.duration|duration_string }}
{% if tummytime.milestone %}
<br /> {{ tummytime.milestone }}
{% endif %}
{% endif %}
{% endblock %}