From 25add00e26a37333641ddceb5ee4991d7bff60bd Mon Sep 17 00:00:00 2001 From: jmunoz94 Date: Mon, 10 Oct 2022 22:52:06 -0500 Subject: [PATCH] Update *_last.html to use deltasince + duration_string --- dashboard/templates/cards/diaperchange_last.html | 4 ++-- dashboard/templates/cards/feeding_last.html | 4 ++-- dashboard/templates/cards/sleep_last.html | 2 +- dashboard/templates/cards/tummytime_last.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboard/templates/cards/diaperchange_last.html b/dashboard/templates/cards/diaperchange_last.html index afbc4a41..059527df 100644 --- a/dashboard/templates/cards/diaperchange_last.html +++ b/dashboard/templates/cards/diaperchange_last.html @@ -1,5 +1,5 @@ {% extends 'cards/base.html' %} -{% load i18n %} +{% load duration i18n %} {% block header %} @@ -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 %}
{{ since }} ago
{{ time }} {% endblocktrans %} diff --git a/dashboard/templates/cards/feeding_last.html b/dashboard/templates/cards/feeding_last.html index 596b9471..a97ec858 100644 --- a/dashboard/templates/cards/feeding_last.html +++ b/dashboard/templates/cards/feeding_last.html @@ -1,5 +1,5 @@ {% extends 'cards/base.html' %} -{% load i18n %} +{% load duration i18n %} {% block header %}
@@ -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 %}
{{ since }} ago
{{ time }} {% endblocktrans %} diff --git a/dashboard/templates/cards/sleep_last.html b/dashboard/templates/cards/sleep_last.html index 2a7a9017..57327022 100644 --- a/dashboard/templates/cards/sleep_last.html +++ b/dashboard/templates/cards/sleep_last.html @@ -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 %}
{{ since }} ago
{{ time }} {% endblocktrans %} diff --git a/dashboard/templates/cards/tummytime_last.html b/dashboard/templates/cards/tummytime_last.html index a28b3017..520d89e7 100644 --- a/dashboard/templates/cards/tummytime_last.html +++ b/dashboard/templates/cards/tummytime_last.html @@ -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 %}
{{ since }} ago
{{ time }} {% endblocktrans %}