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