From: Michael Tremer Date: Tue, 13 Nov 2018 00:32:25 +0000 (+0000) Subject: wiki: Add a page that helps users editing pages X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c13ca2d9bcd7539533ad29a365829865a612b57;p=ipfire.org.git wiki: Add a page that helps users editing pages Signed-off-by: Michael Tremer --- diff --git a/src/templates/wiki/edit.html b/src/templates/wiki/edit.html index 34a71e4f..416ef648 100644 --- a/src/templates/wiki/edit.html +++ b/src/templates/wiki/edit.html @@ -2,6 +2,14 @@ {% 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 %}
diff --git a/src/web/base.py b/src/web/base.py index 4c1b3a9e..81594f5c 100644 --- a/src/web/base.py +++ b/src/web/base.py @@ -66,6 +66,7 @@ class BaseHandler(tornado.web.RequestHandler): now = datetime.date.today() ns.update({ + "backend" : self.backend, "debug" : self.application.settings.get("debug", False), "format_size" : util.format_size, "format_time" : util.format_time,