Add relative representation of dates in task listings

This commit is contained in:
Adam Goldsmith 2021-05-14 22:09:02 -04:00
parent ef81e2ba51
commit 6d1ef6ab22

View File

@ -2,5 +2,7 @@
<a href="{{ task.get_absolute_url }}">
{{ task.name }}
</a>
- last completed {{ task.last_event.date|date|default:"never"}}, next required {{ task.next_recurrence|date|default:"never" }}
- last completed {{ task.last_event.date|date|default:"never"}}
({{ task.last_event.date|timesince|default:"never" }}),
next required {{ task.next_recurrence|date|default:"never" }} ({{ task.next_recurrence|timeuntil|default:"never" }})
</li>