blob: 475e837d60d1436ec2f06922c0c3b90e84a8690f (
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
63
64
65
66
67
|
{%- set styles = ['layout.css', 'bootstrap-form.css'] + styles|default([]) %}
{%- set scripts = ['jquery-1.8.2.min.js'] + 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, version='0.1') }}">
{%- endfor %}
</head>
<body>
<div id="header-background"> </div>
<header>
<h1><a href="{{ url_for('index') }}">
<img src="{{ url_for('static', filename='logo.png') }}" alt="spline accounts" />
</a></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') }}">FAQ</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>
<script type="text/javascript">
{% block javascript %}{% endblock %}
</script>
</body>
</html>
|