From fc151535954629000895de64cea3e7c452fb1c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 5 Jul 2010 23:54:11 +0200 Subject: Only show right nav arrow, if the following month is not in the future --- templates/pages/show.mako | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'templates') diff --git a/templates/pages/show.mako b/templates/pages/show.mako index cf14638..aa67768 100644 --- a/templates/pages/show.mako +++ b/templates/pages/show.mako @@ -31,16 +31,18 @@ ${date} -<% - if e.date.month == 13 - len(exps): - date = "%s/1" % (e.date.year + 1) - else: - date = "%s/%s" % (e.date.year, e.date.month + len(exps)) -%> - - ${date} - - +% if not is_last: + <% + if e.date.month == 13 - len(exps): + date = "%s/1" % (e.date.year + 1) + else: + date = "%s/%s" % (e.date.year, e.date.month + len(exps)) + %> + + ${date} + + +% endif <%def name="heading()"> % if len(exps) > 1: -- cgit v1.2.3