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 %} {% block title %}
{% if change %} {% if change %}
{% blocktrans trimmed with time=change.time|timesince %} {% blocktrans trimmed with since=change.time|timesince time=change.time|time %}
{{ time }} ago <div>{{ since }} ago</div>
<small>{{ time }}</small>
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% trans "None" %} {% trans "None" %}

View File

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

View File

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

View File

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