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' %}
|
{% extends 'cards/base.html' %}
|
||||||
{% load i18n %}
|
{% load duration i18n %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<a href="{% url "core:diaperchange-list" %}">
|
<a href="{% url "core:diaperchange-list" %}">
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if change %}
|
{% 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>
|
<div>{{ since }} ago</div>
|
||||||
<small>{{ time }}</small>
|
<small>{{ time }}</small>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends 'cards/base.html' %}
|
{% extends 'cards/base.html' %}
|
||||||
{% load i18n %}
|
{% load duration i18n %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<a href="{% url "core:feeding-list" %}">
|
<a href="{% url "core:feeding-list" %}">
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if feeding %}
|
{% 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>
|
<div>{{ since }} ago</div>
|
||||||
<small>{{ time }}</small>
|
<small>{{ time }}</small>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if sleep %}
|
{% 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>
|
<div>{{ since }} ago</div>
|
||||||
<small>{{ time }}</small>
|
<small>{{ time }}</small>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if tummytime %}
|
{% 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>
|
<div>{{ since }} ago</div>
|
||||||
<small>{{ time }}</small>
|
<small>{{ time }}</small>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
Loading…
Reference in New Issue