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-10-28 00:12:39 +00:00
|
|
|
{% if stats.count > 0 %}
|
|
|
|
{{ stats.total|duration_string }}
|
|
|
|
{% else %}
|
|
|
|
<i class="icon icon-sad" aria-hidden="true"></i>
|
|
|
|
<strong>None yet today</strong>
|
|
|
|
<i class="icon icon-sad" aria-hidden="true"></i>
|
|
|
|
{% endif %}
|
2017-08-18 18:58:10 +00:00
|
|
|
{% 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>
|
2017-10-24 00:07:45 +00:00
|
|
|
{% endblock %}
|