From: Michael Tremer Date: Mon, 9 Oct 2023 16:50:48 +0000 (+0000) Subject: docs: Drop sidebar stuff which we no longer use X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66f63f7928edb13bfd21b501711205d2220b72d0;p=ipfire.org.git docs: Drop sidebar stuff which we no longer use Signed-off-by: Michael Tremer --- diff --git a/src/backend/wiki.py b/src/backend/wiki.py index 3ce17944..4db0b595 100644 --- a/src/backend/wiki.py +++ b/src/backend/wiki.py @@ -403,19 +403,6 @@ class Page(misc.Object): def check_acl(self, account): return self.backend.wiki.check_acl(self.page, account) - # Sidebar - - @lazy_property - def sidebar(self): - parts = self.page.split("/") - - while parts: - sidebar = self.backend.wiki.get_page("%s/sidebar" % os.path.join(*parts)) - if sidebar: - return sidebar - - parts.pop() - # Watchers @lazy_property diff --git a/src/templates/docs/edit.html b/src/templates/docs/edit.html index f474f016..5717c0f6 100644 --- a/src/templates/docs/edit.html +++ b/src/templates/docs/edit.html @@ -2,14 +2,6 @@ {% block title %}{% if page %}{{ _("Edit %s") % page.title }}{% else %}{{ _("Create A New Page") }}{% end %}{% end block %} -{% block sidebar %} - {% set help = backend.wiki.get_page("/wiki/edit") %} - - {% if help %} - {% raw help.html %} - {% end %} -{% end block %} - {% block main %} {% import os.path %} diff --git a/src/templates/docs/files/index.html b/src/templates/docs/files/index.html index 3ae638a2..486d36cf 100644 --- a/src/templates/docs/files/index.html +++ b/src/templates/docs/files/index.html @@ -2,14 +2,6 @@ {% block title %}{{ _("Files") }}{% end block %} -{% block sidebar %} - {% set help = backend.wiki.get_page("/wiki/media") %} - - {% if help %} - {% raw help.html %} - {% end %} -{% end block %} - {% block main %} {% if files %}
diff --git a/src/templates/docs/page.html b/src/templates/docs/page.html index b91a5562..299547e1 100644 --- a/src/templates/docs/page.html +++ b/src/templates/docs/page.html @@ -2,14 +2,6 @@ {% block title %}{{ page.title }}{% end block %} -{% block sidebar %} - {% if page and page.sidebar %} -
- {% raw page.sidebar.html %} -
- {% end %} -{% end block %} - {% block head %} diff --git a/src/templates/docs/watchlist.html b/src/templates/docs/watchlist.html index 4a4aee6d..a21798f6 100644 --- a/src/templates/docs/watchlist.html +++ b/src/templates/docs/watchlist.html @@ -2,14 +2,6 @@ {% block title %}{{ _("Your Watchlist") }}{% end block %} -{% block sidebar %} - {% set help = backend.wiki.get_page("/wiki/watchlist") %} - - {% if help %} - {% raw help.html %} - {% end %} -{% end block %} - {% block main %}