From ea37372d31bd70135d980b7fa053bee7cc2a5133 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 4 Oct 2013 01:14:39 +0200 Subject: Right-align "stable release: X.Y" hint Show the "Stable release: X.Y" hint on the right-hand side of the breadcrumb navigation line. diff --git a/web/content/media/plugins.css b/web/content/media/plugins.css index 0e104b9..552284f 100644 --- a/web/content/media/plugins.css +++ b/web/content/media/plugins.css @@ -109,6 +109,11 @@ div#breadcrumb { font-size: small; } +div#breadcrumb span#release { + float: right; + font-weight: bold; +} + div#footer { color: #696969; text-align: center; diff --git a/web/macros.py b/web/macros.py index 5ec9b38..6ee8393 100644 --- a/web/macros.py +++ b/web/macros.py @@ -18,17 +18,18 @@ def menu(): print('%s' % (p.url, hx(p.title))) def breadcrumb(): + stable = 'Stable release: %s' \ + % (release_notes, plugins_release) parents = {p.title: (p.url, p.get('parent')) for p in pages} title = page.title - output = hx(title) + crumbs = hx(title) while parents[title][1] is not None: title = parents[title][1] url = parents[title][0] - output = '%s » %s' % (url, hx(title), output) - if output == hx(page.title): - output = 'Stable release: %s' \ - % (release_notes, plugins_release) - return output + crumbs = '%s » %s' % (url, hx(title), crumbs) + if crumbs == hx(page.title): + crumbs = ' ' + stable + return crumbs def list_kids(): kids = [(p.url, p.title) for p in pages if p.get('parent') == page.title] -- cgit v0.10-9-g596f