mybuddy/dashboard/templates/cards/tummytime_day.html

26 lines
806 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load duration i18n %}
2017-08-18 18:58:10 +00:00
{% block header %}{% trans "Today's Tummy Time" %}{% endblock %}
2017-08-18 18:58:10 +00:00
{% block title %}
{% if stats.count > 0 %}
{{ stats.total|duration_string }}
{% else %}
<i class="icon icon-sad" aria-hidden="true"></i>
{% trans "None yet today" %}
<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">
{% blocktrans trimmed with duration=instance.duration|duration_string end=instance.end|time %}
{{ duration }} at {{ end }}
{% endblocktrans %}
</li>
2017-08-18 18:58:10 +00:00
{% endfor %}
</ul>
{% endblock %}