mybuddy/dashboard/templates/cards/sleep_last.html

16 lines
415 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load duration i18n %}
{% block header %}{% trans "Last Slept" %}{% endblock %}
{% block title %}
{% if sleep %}
{% blocktrans trimmed with time=sleep.end|timesince %}
{{ time }} ago
{% endblocktrans %}
{% else %}
{% trans "Never" %}
{% endif %}
{% endblock %}
{% block content %}{{ sleep.duration|duration_string }}{% endblock %}