From 2db9eac5e7ba91f42bbbad45a6fb16e5b817e014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 15 Feb 2011 04:28:09 +0100 Subject: Show dates for next/prev const --- templates/pages/const.mako | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/pages/const.mako b/templates/pages/const.mako index a65a260..ec68ef8 100644 --- a/templates/pages/const.mako +++ b/templates/pages/const.mako @@ -11,16 +11,18 @@

Edit Create new based on this

<% + def create(p): + return ("const/%s" % p.id, "%s (%s-%s)" % (p.description, dformat(p.start), dformat(p.end))) + p = exp.prev if p: - context.write(self.left_arrow("const/%s" % p.id, p.description)) + context.write(self.left_arrow(*create(p))) p = exp.next if p: - context.write(self.right_arrow("const/%s" % p.id, p.description)) + context.write(self.right_arrow(*create(p))) %> - <%def name="heading()"> Constant Expense -- cgit v1.2.3