summaryrefslogtreecommitdiff
path: root/templates/pages
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-07-05 23:54:11 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-07-05 23:54:11 +0200
commitfc151535954629000895de64cea3e7c452fb1c84 (patch)
tree041fa27f31f223175cf11a6de7191ca9a0b64cba /templates/pages
parent47c0ab4982cb9ee9c15ce0d055ad830b1ec9e5b6 (diff)
downloadkosten-fc151535954629000895de64cea3e7c452fb1c84.tar.gz
kosten-fc151535954629000895de64cea3e7c452fb1c84.tar.bz2
kosten-fc151535954629000895de64cea3e7c452fb1c84.zip
Only show right nav arrow, if the following month is not in the future
Diffstat (limited to '')
-rw-r--r--templates/pages/show.mako22
1 files changed, 12 insertions, 10 deletions
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 @@
<span class="navdate">${date}</span>
</a>
-<%
- 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))
-%>
-<a id="right" href=${"/" + date | url}>
- <span class="navdate">${date}</span>
- <img src=${"/static/images/arrow_right.png" | url}/>
-</a>
+% 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))
+ %>
+ <a id="right" href=${"/" + date | url}>
+ <span class="navdate">${date}</span>
+ <img src=${"/static/images/arrow_right.png" | url}/>
+ </a>
+% endif
<%def name="heading()">
% if len(exps) > 1: