2017-08-18 18:58:10 +00:00
|
|
|
{% extends 'cards/tummytime.html' %}
|
2017-08-20 15:45:26 +00:00
|
|
|
{% load duration %}
|
2017-08-18 18:58:10 +00:00
|
|
|
|
|
|
|
{% block header %}Today's Tummy Time{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}
|
2017-08-20 15:45:26 +00:00
|
|
|
<strong>{{ stats.total|duration_string }}</strong>
|
2017-08-18 18:58:10 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{{ stats.count }} total entries
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block listgroup %}
|
|
|
|
<ul class="list-group list-group-flush text-muted small">
|
|
|
|
{% for instance in instances %}
|
2017-08-20 15:45:26 +00:00
|
|
|
<li class="list-group-item">{{ instance.duration|duration_string }} at {{ instance.end|time }}</li>
|
2017-08-18 18:58:10 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-08-20 19:36:26 +00:00
|
|
|
{% block footer %}Last tummy time: {{ last.end|timesince }} ago{% endblock %}
|