mybuddy/dashboard/templates/cards/sleep_day.html

22 lines
470 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load duration i18n %}
2017-09-13 14:31:56 +00:00
2021-08-04 20:36:00 +00:00
{% block header %}
<a href="{% url "core:sleep-list" %}">
{% trans "Today's Sleep" %}
</a>
{% endblock %}
2017-09-13 14:31:56 +00:00
{% block title %}
{% if total %}
2017-10-30 23:35:51 +00:00
{{ total|duration_string }}
2017-09-13 14:31:56 +00:00
{% else %}
{% trans "None" %}
2017-09-13 14:31:56 +00:00
{% endif %}
{% endblock %}
{% block content %}
{% if count > 0 %}
{% blocktrans %}{{ count }} sleep entries{% endblocktrans %}
{% endif %}
{% endblock %}