From 3922966815f0684f44d9c9b270d50b9e1f78624f Mon Sep 17 00:00:00 2001 From: Ohad Lutzky Date: Wed, 11 Aug 2021 21:07:06 +0100 Subject: [PATCH] Add date-nav to bottom Only if date has any events (otherwise no scrolling is necessary) Fixes #229 --- core/templates/core/child_detail.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/templates/core/child_detail.html b/core/templates/core/child_detail.html index 6a6c08e3..660af24c 100644 --- a/core/templates/core/child_detail.html +++ b/core/templates/core/child_detail.html @@ -82,6 +82,21 @@ {% endfor %} +

+ {% if date_previous %} + + + {% trans "Previous" %} + + {% endif %} + {{ date|date }} + {% if date_next %} + + + {% trans "Next" %} + + {% endif %} +

{% else %}
No events
{% endif %}