2017-10-29 03:01:39 +00:00
|
|
|
{% extends 'cards/base.html' %}
|
2019-04-14 15:40:08 +00:00
|
|
|
{% load duration i18n %}
|
2017-08-18 18:58:10 +00:00
|
|
|
|
2019-04-14 15:40:08 +00:00
|
|
|
{% block header %}{% trans "Today's Tummy Time" %}{% endblock %}
|
2017-08-18 18:58:10 +00:00
|
|
|
|
|
|
|
{% 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>
|
2019-04-14 15:40:08 +00:00
|
|
|
{% trans "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 %}
|
2019-04-14 15:40:08 +00:00
|
|
|
<li class="list-group-item">
|
2020-01-24 04:00:32 +00:00
|
|
|
{% blocktrans trimmed with duration=instance.duration|duration_string end=instance.end|time %}
|
|
|
|
{{ duration }} at {{ end }}
|
|
|
|
{% endblocktrans %}
|
2019-04-14 15:40:08 +00:00
|
|
|
</li>
|
2017-08-18 18:58:10 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2017-10-24 00:07:45 +00:00
|
|
|
{% endblock %}
|