mybuddy/dashboard/templates/cards/tummytime_day.html

28 lines
748 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
2021-08-04 20:36:00 +00:00
{% block header %}
<a href="{% url "core:tummytime-list" %}">
{% trans "Today's Tummy Time" %}
</a>
{% endblock %}
2017-08-18 18:58:10 +00:00
{% block title %}
{% if stats.count > 0 %}
{{ stats.total|duration_string }}
{% else %}
{% trans "None" %}
{% 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 %}