From 18f0c3c367a4dd53aff163f717bb62fb661e8600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 14 Apr 2013 21:00:24 +0200 Subject: Backport @app.template_test; make the functions in expenses filters/tests --- templates/pages/show.jinja | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/pages/show.jinja') diff --git a/templates/pages/show.jinja b/templates/pages/show.jinja index 895a107..57bb1b3 100644 --- a/templates/pages/show.jinja +++ b/templates/pages/show.jinja @@ -34,12 +34,12 @@ {# Note: exps are given _reversed_, i.e. "exps | last" is the _first_ on the timeline #} - {% set d = prev_date(exps | last) %} + {% set d = exps | last | prev_date %} {{ left_arrow(url_for(".show_date", **d), d | date) }} {% set first = exps | first %} - {% if not is_last(first) %} - {% set d = next_date(first) %} + {% if not first is last_date %} + {% set d = first | next_date %} {{ right_arrow(url_for(".show_date", **d), d | date) }} {% endif %} {% endblock content %} -- cgit v1.2.3