From 2e9927d1a21baaee16f2a3a329bb6a7525142c61 Mon Sep 17 00:00:00 2001 From: Ralph Thesen Date: Tue, 3 Sep 2024 23:30:30 +0200 Subject: [PATCH] fix: QoL Changelog uses full colum and displays the menutree. --- otterwiki/templates/changelog.html | 5 +++++ otterwiki/wiki.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/otterwiki/templates/changelog.html b/otterwiki/templates/changelog.html index dd08f27..5300bc2 100644 --- a/otterwiki/templates/changelog.html +++ b/otterwiki/templates/changelog.html @@ -4,6 +4,11 @@ {{ super() }} {% endblock %} +{% block extra_nav %}{% endblock %} +{% block menu %} +{{ super() }} +{% include 'snippets/menutree.html' %} +{% endblock %} {% block content %}

Changelog

diff --git a/otterwiki/wiki.py b/otterwiki/wiki.py index 9be55a7..e19ea13 100644 --- a/otterwiki/wiki.py +++ b/otterwiki/wiki.py @@ -350,6 +350,7 @@ def render(self): # use the shorter page list pages = pages_short + menutree = SidebarNavigation(get_page_directoryname("/")) return render_template( "changelog.html", log=log, @@ -359,6 +360,7 @@ def render(self): last_page=last_page, previous_page=previous_page, next_page=next_page, + menutree=menutree.query(), ) def revert_form(self, revision, message):