{% extends 'cards/base.html' %} {% load duration i18n %} {% block header %} {% trans "Last Sleep" %} {% endblock %} {% block title %} {% if sleep %} {% blocktrans trimmed with since=sleep.end|timesince time=sleep.end|time %}
{{ since }} ago
{{ time }} {% endblocktrans %} {% else %} {% trans "None" %} {% endif %} {% endblock %} {% block content %}{{ sleep.duration|duration_string }}{% endblock %}