]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Move navigation bar to base template
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Nov 2018 23:31:13 +0000 (23:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Nov 2018 23:31:13 +0000 (23:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/wiki/base.html
src/templates/wiki/page.html
src/templates/wiki/revisions.html

index dd35246f3131fbc81e39e122398a96964903d0b6..5fd678d6d9c8aca9b51b17f8cdddeeb42e1d69fb 100644 (file)
@@ -7,6 +7,10 @@
                </div>
 
                <div class="col-12 col-lg-9">
+                       {% if not request.path == "/" %}
+                               {% module WikiNavbar(page) %}
+                       {% end %}
+
                        {% block main %}{% end block %}
                </div>
        </div>
index b63740d819f9c591e77e566b08785232a224da99..88e49dea111ace9da17af33819602f5379b5f8fa 100644 (file)
 {% end block %}
 
 {% block main %}
-       {% if not request.path == "/" %}
-               {% module WikiNavbar(page) %}
-       {% end %}
-
        <div class="card mb-3">
                <div class="card-body wiki-content">
                        {% raw page.html %}
index 524813dbb597c32e6b471d5382dd2d209577b6a1..8c460552d0cae5cf8661d4448d696ee46ad3511e 100644 (file)
@@ -3,10 +3,6 @@
 {% block title %}{{ _("Revisions of %s") % page.title }}{% end block %}
 
 {% block main %}
-       {% if not request.path == "/" %}
-               {% module WikiNavbar(page) %}
-       {% end %}
-
        <div class="card mb-3">
                <div class="card-body">
             <h4 class="card-title">{{ _("Revisions of %s") % page.title }}</h4>