mirror of https://github.com/snachodog/mybuddy.git
Update *_last.html to use deltasince + duration_string
This commit is contained in:
parent
fff19339f4
commit
25add00e26
|
@ -1,5 +1,5 @@
|
|||
{% extends 'cards/base.html' %}
|
||||
{% load i18n %}
|
||||
{% load duration i18n %}
|
||||
|
||||
{% block header %}
|
||||
<a href="{% url "core:diaperchange-list" %}">
|
||||
|
@ -9,7 +9,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if change %}
|
||||
{% blocktrans trimmed with since=change.time|timesince time=change.time|time %}
|
||||
{% blocktrans trimmed with since=change.time|deltasince|duration_string:'m' time=change.time|time %}
|
||||
<div>{{ since }} ago</div>
|
||||
<small>{{ time }}</small>
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends 'cards/base.html' %}
|
||||
{% load i18n %}
|
||||
{% load duration i18n %}
|
||||
|
||||
{% block header %}
|
||||
<a href="{% url "core:feeding-list" %}">
|
||||
|
@ -9,7 +9,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if feeding %}
|
||||
{% blocktrans trimmed with since=feeding.start|timesince time=feeding.start|time %}
|
||||
{% blocktrans trimmed with since=feeding.start|deltasince|duration_string:'m' time=feeding.start|time %}
|
||||
<div>{{ since }} ago</div>
|
||||
<small>{{ time }}</small>
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if sleep %}
|
||||
{% blocktrans trimmed with since=sleep.end|timesince time=sleep.end|time %}
|
||||
{% blocktrans trimmed with since=sleep.end|deltasince|duration_string:'m' time=sleep.end|time %}
|
||||
<div>{{ since }} ago</div>
|
||||
<small>{{ time }}</small>
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if tummytime %}
|
||||
{% blocktrans trimmed with since=tummytime.time|timesince time=tummytime.time|time %}
|
||||
{% blocktrans trimmed with since=tummytime.time|deltasince|duration_string:'m' time=tummytime.time|time %}
|
||||
<div>{{ since }} ago</div>
|
||||
<small>{{ time }}</small>
|
||||
{% endblocktrans %}
|
||||
|
|
Loading…
Reference in New Issue