diff options
Diffstat (limited to 'templates/pages/const.mako')
-rw-r--r-- | templates/pages/const.mako | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ <p><a href=${"/const/edit/%s" % exp.id | url}>Edit</a> <a href=${"/const/add/from/%s" % exp.id | url}>Create new based on this</a></p> <% + 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 </%def> |