From 6050e26f7a1f733447717cf99861207007704620 Mon Sep 17 00:00:00 2001 From: Krateng Date: Mon, 17 Aug 2020 18:16:09 +0200 Subject: [PATCH] Added basic top info structure to base template --- maloja/server.py | 2 +- maloja/web/jinja/abstracts/base.jinja | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/maloja/server.py b/maloja/server.py index d8707a8..66d1b80 100755 --- a/maloja/server.py +++ b/maloja/server.py @@ -221,7 +221,7 @@ jinjaenv = Environment( jinjaenv.globals.update(JINJA_CONTEXT) -@webserver.route("/") +@webserver.route("/") @auth.authenticated def static_html_private(name): return static_html(name) diff --git a/maloja/web/jinja/abstracts/base.jinja b/maloja/web/jinja/abstracts/base.jinja index 9d0509b..924a989 100644 --- a/maloja/web/jinja/abstracts/base.jinja +++ b/maloja/web/jinja/abstracts/base.jinja @@ -20,6 +20,25 @@ {% block content %} + + + + + +
+
+
+

{% block heading %}{% endblock %}


+ + + {% block top_info %} + + {% endblock %} +
+ + {% block maincontent %} + + {% endblock %} {% endblock %}