blob: 381fd0f26d1f712de79a5d4c850b65fe01f08135 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{%- set styles = ['layout.css', 'bootstrap-form.css'] + styles|default([]) %}
{%- set scripts = [] + scripts|default([]) %}
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>{% if title %}{{ title }} – {% endif %}spline accounts</title>
{%- for script in scripts %}
<script type="text/javascript" src="{{ url_for('static', filename=script) }}"></script>
{%- endfor %}
{%- for style in styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename=style) }}">
{%- endfor %}
</head>
<body>
<div id="header-background"> </div>
<header>
<h1><img src="{{url_for('static', filename='logo.png')}}" alt="spline accounts" /></h1>
<span id="roundcornerb"> </span>
<span id="roundcornerw"> </span>
<nav id="mainnav">
<ul>
<li><a href="http://spline.de">spline.de</a></li>
<li><a href="{#{ url_for('about') }#}">Über spline accounts</a></li>
</ul>
</nav>
{%- if not no_login_message %}
<nav id="usermenu">
<ul>
{%- if g.user %}
<li>Angemeldet als <strong>{{ g.user.uid }}</strong></li>
<li><a href="{{ url_for('logout') }}">Abmelden</a></li>
{%- else %}
<li>Nicht angemeldet</li>
<li><a href="{{ url_for('index') }}">Login</a></li>
{%- endif %}
</ul>
</nav>
{%- endif %}
</header>
<section id="content">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<ul class="flashes">
{% for category, message in messages %}
<li class="{{ category }}">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% if title %}
<h1>{{ title }}</h1>
{% endif %}
{% block content %}{% endblock %}
</section>
</body>
</html>
|