mybuddy/dashboard/templates/cards/sleep_day.html

20 lines
532 B
HTML

{% extends 'cards/base.html' %}
{% load duration i18n %}
{% block header %}{% trans "Today's Sleep" %}{% endblock %}
{% block title %}
{% if total %}
{{ 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 %}
{% endblock %}
{% block content %}
{% if count > 0 %}
{% blocktrans %}{{ count }} sleep entries{% endblocktrans %}
{% endif %}
{% endblock %}