summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-03 14:01:30 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-03 14:01:30 (GMT)
commit1b97bfce0d3385c55e440447d2bba00b55f9d6dc (patch)
treecef11af10a1227584bc4abfb60fdd79a4b59b504
parent61befc57729bf6b339e0de339d8cd7185a6d9c8d (diff)
downloadsite-1b97bfce0d3385c55e440447d2bba00b55f9d6dc.tar.gz
Show "Stable release: x.y" on home page
Show a "Stable release: x.y" note in place of the breadcrumb navigation on the home page.
-rw-r--r--web/macros.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/macros.py b/web/macros.py
index 9416c75..5ec9b38 100644
--- a/web/macros.py
+++ b/web/macros.py
@@ -25,8 +25,9 @@ def breadcrumb():
25 title = parents[title][1] 25 title = parents[title][1]
26 url = parents[title][0] 26 url = parents[title][0]
27 output = '<a href="%s">%s</a> &raquo; %s' % (url, hx(title), output) 27 output = '<a href="%s">%s</a> &raquo; %s' % (url, hx(title), output)
28 if output == hx(page.title): # Hide breadcrumb if the page has no parent. 28 if output == hx(page.title):
29 output = '&nbsp;' 29 output = 'Stable release: <a href="%s">%s</a>' \
30 % (release_notes, plugins_release)
30 return output 31 return output
31 32
32def list_kids(): 33def list_kids():