mybuddy/dashboard/templates/cards/sleep_last.html

17 lines
552 B
HTML
Raw Permalink Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load duration i18n %}
2021-08-04 20:36:00 +00:00
{% block header %}
<a href="{% url "core:sleep-list" %}">{% trans "Last Sleep" %}</a>
2021-08-04 20:36:00 +00:00
{% endblock %}
{% block title %}
{% if sleep %}
{% blocktrans trimmed with since=sleep.end|deltasince|duration_string:'m' time=sleep.end|time %}
2021-07-02 19:10:11 +00:00
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "None" %}
{% endif %}
{% endblock %}
{% block content %}{{ sleep.duration|duration_string }}{% endblock %}