mirror of https://github.com/snachodog/mybuddy.git
Show absolute last times in dashboard
This commit is contained in:
parent
1e36cb2211
commit
ed1d6b779e
|
@ -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" %}
|
||||
|
|
|
@ -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" %}
|
||||
|
|
|
@ -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" %}
|
||||
|
|
|
@ -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" %}
|
||||
|
|
Loading…
Reference in New Issue