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:
parent
ae0da83a9c
commit
6050e26f7a
@ -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)
|
||||
|
@ -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 %}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user