diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-03 14:01:30 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-03 14:01:30 (GMT) |
commit | 1b97bfce0d3385c55e440447d2bba00b55f9d6dc (patch) | |
tree | cef11af10a1227584bc4abfb60fdd79a4b59b504 /web | |
parent | 61befc57729bf6b339e0de339d8cd7185a6d9c8d (diff) | |
download | site-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.
Diffstat (limited to 'web')
-rw-r--r-- | web/macros.py | 5 |
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> » %s' % (url, hx(title), output) | 27 | output = '<a href="%s">%s</a> » %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 = ' ' | 29 | output = 'Stable release: <a href="%s">%s</a>' \ |
30 | % (release_notes, plugins_release) | ||
30 | return output | 31 | return output |
31 | 32 | ||
32 | def list_kids(): | 33 | def list_kids(): |