mybuddy/dashboard/templates/cards/sleep_day.html

18 lines
484 B
HTML

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