mybuddy/dashboard/templates/cards/tummytime_day.html

22 lines
664 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load duration %}
2017-08-18 18:58:10 +00:00
{% block header %}Today's Tummy Time{% endblock %}
{% block title %}
{% 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 %}
<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 %}