Show absolute last times in dashboard

This commit is contained in:
Ohad Lutzky 2021-07-02 20:10:11 +01:00 committed by Christopher Charbonneau Wells
parent 1e36cb2211
commit ed1d6b779e
4 changed files with 12 additions and 8 deletions

View File

@ -5,8 +5,9 @@
{% block title %}
{% if change %}
{% blocktrans trimmed with time=change.time|timesince %}
{{ time }} ago
{% blocktrans trimmed with since=change.time|timesince time=change.time|time %}
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "None" %}

View File

@ -5,8 +5,9 @@
{% block title %}
{% if feeding %}
{% blocktrans trimmed with time=feeding.start|timesince %}
{{ time }} ago
{% blocktrans trimmed with since=feeding.start|timesince time=feeding.start|time %}
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "None" %}

View File

@ -5,8 +5,9 @@
{% block title %}
{% if sleep %}
{% blocktrans trimmed with time=sleep.end|timesince %}
{{ time }} ago
{% blocktrans trimmed with since=sleep.end|timesince time=sleep.end|time %}
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "None" %}

View File

@ -5,8 +5,9 @@
{% block title %}
{% if tummytime %}
{% blocktrans trimmed with time=tummytime.time|timesince %}
{{ time }} ago
{% blocktrans trimmed with since=tummytime.time|timesince time=tummytime.time|time %}
<div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %}
{% else %}
{% trans "Never" %}