mybuddy/dashboard/templates/cards/sleep_naps_day.html

18 lines
554 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
2017-10-23 23:52:20 +00:00
{% load duration %}
{% block header %}Today's Naps <small><em>(7AM - 7PM)</em></small>{% endblock %}
2017-10-23 23:52:20 +00:00
{% block title %}
{% if count %}
<strong>{{ count }}</strong> nap{{ count|pluralize }}
2017-10-23 23:52:20 +00:00
{% 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 total.duration__sum %}{{ total.duration__sum|duration_string }}{% endif %}
{% endblock %}