2017-10-29 03:01:39 +00:00
|
|
|
{% extends 'cards/base.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>
|
2017-10-30 23:35:51 +00:00
|
|
|
None yet today
|
2017-10-28 00:12:39 +00:00
|
|
|
<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 %}
|