Update *_last.html to use deltasince + duration_string

This commit is contained in:
jmunoz94 2022-10-10 22:52:06 -05:00 committed by Christopher Charbonneau Wells
parent fff19339f4
commit 25add00e26
4 changed files with 6 additions and 6 deletions

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}