summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2015-09-15 07:04:59 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2015-09-15 07:04:59 (GMT)
commitc2ffff88172ee60773dd6c10d71026fd0aa9f23a (patch)
tree80e099557d11752216d32b2bd8515c1caed69b4d /web
parentfbc5c575ee97234e8d82ce4219422dd2e76eb68c (diff)
downloadsite-c2ffff88172ee60773dd6c10d71026fd0aa9f23a.tar.gz
News pages: Fix link to page 1 in footer
Diffstat (limited to 'web')
-rw-r--r--web/macros.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/macros.py b/web/macros.py
index 6a10d1b..6269718 100644
--- a/web/macros.py
+++ b/web/macros.py
@@ -134,6 +134,8 @@ def make_news_footer(n_news_pages, current_index):
134 for i in range(n_news_pages): 134 for i in range(n_news_pages):
135 if i == current_index: 135 if i == current_index:
136 footer.append('%d' % (i + 1)) 136 footer.append('%d' % (i + 1))
137 elif i == 0:
138 footer.append('[1](news/index.html)')
137 else: 139 else:
138 footer.append('[%d](news/%d.html)' % (i + 1, i + 1)) 140 footer.append('[%d](news/%d.html)' % (i + 1, i + 1))
139 if current_index != n_news_pages - 1: 141 if current_index != n_news_pages - 1: