diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-14 11:33:42 +0200 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-14 11:33:42 +0200 |
| commit | d1a09181d90eef9e79406941db86096daa213df3 (patch) | |
| tree | 273a411cca63f0599c69dda98327f4a76c03a56c | |
| parent | 91c9ab126e147b80ec5120ec4c3929d6b1ce4ddf (diff) | |
| download | site-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.
| -rw-r--r-- | web/macros.py | 2 |
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 | ||
| 113 | def make_news_footer(n_news_pages, current_index): | 113 | def 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) |
