From 66a814d9ccb133d395382b61426eb7a9d6b1af3a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 12 Nov 2018 20:08:28 +0000 Subject: [PATCH] wiki: Show breadcrumbs in changelog Signed-off-by: Michael Tremer --- src/templates/wiki/modules/list.html | 6 ++++++ src/web/wiki.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/templates/wiki/modules/list.html b/src/templates/wiki/modules/list.html index 1c8f0956..625e1dd7 100644 --- a/src/templates/wiki/modules/list.html +++ b/src/templates/wiki/modules/list.html @@ -1,5 +1,11 @@ {% for page in pages %} + {% if show_breadcrumbs %} + {% for url, title in page.breadcrumbs %} + {{ title }} / + {% end %} + {% end %} + {{ page.title }} diff --git a/src/web/wiki.py b/src/web/wiki.py index c6244b55..0fa9ba5e 100644 --- a/src/web/wiki.py +++ b/src/web/wiki.py @@ -90,9 +90,9 @@ class RecentChangesHandler(auth.CacheMixin, base.BaseHandler): class WikiListModule(ui_modules.UIModule): - def render(self, pages, show_changes=False): + def render(self, pages, show_breadcrumbs=True, show_changes=False): return self.render_string("wiki/modules/list.html", - pages=pages, show_changes=show_changes) + pages=pages, show_breadcrumbs=show_breadcrumbs, show_changes=show_changes) class WikiNavbarModule(ui_modules.UIModule): -- 2.47.3