1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added basic top info structure to base template

This commit is contained in:
Krateng 2020-08-17 18:16:09 +02:00
parent ae0da83a9c
commit 6050e26f7a
2 changed files with 20 additions and 1 deletions

View File

@ -221,7 +221,7 @@ jinjaenv = Environment(
jinjaenv.globals.update(JINJA_CONTEXT)
@webserver.route("/<name:re:(admin.*)>")
@webserver.route("/<name:re:admin.*>")
@auth.authenticated
def static_html_private(name):
return static_html(name)

View File

@ -20,6 +20,25 @@
{% block content %}
<table class="top_info">
<tr>
<td class="image">
<div style="background-image:url('{% block imageurl %}/favicon.png{% endblock %}')"></div>
</td>
<td class="text">
<h1>{% block heading %}{% endblock %}</h1><br/>
{% block top_info %}
{% endblock %}
</td>
</tr>
</table>
{% block maincontent %}
{% endblock %}
{% endblock %}