summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-14 09:33:42 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-14 09:33:42 (GMT)
commitd1a09181d90eef9e79406941db86096daa213df3 (patch)
tree273a411cca63f0599c69dda98327f4a76c03a56c /web
parent91c9ab126e147b80ec5120ec4c3929d6b1ce4ddf (diff)
downloadsite-d1a09181d90eef9e79406941db86096daa213df3.tar.gz
web/macros.py: Hide navigation on single News page
Hide the News archive navigation as long as there's only a single News page.
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 1f3ce68..fa1b87a 100644
--- a/web/macros.py
+++ b/web/macros.py
@@ -111,6 +111,8 @@ def make_news_page(posts, current_index):
111 return '\n'.join(abstract) + '\n\n' 111 return '\n'.join(abstract) + '\n\n'
112 112
113def make_news_footer(n_news_pages, current_index): 113def make_news_footer(n_news_pages, current_index):
114 if n_news_pages == 1:
115 return ''
114 footer = list() 116 footer = list()
115 if current_index != 0: 117 if current_index != 0:
116 previous = 'index' if current_index == 1 else str(current_index) 118 previous = 'index' if current_index == 1 else str(current_index)