blob: baf16569a675b7ab883eac52a5af6396ef7e1088 (
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
68
69
70
71
72
73
74
|
{%- set styles = ['layout.css', 'bootstrap-form.css', 'bootstrap.min.css'] + styles|default([]) %}
{%- set scripts = ['script.js', '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.2') }}">
{%- endfor %}
</head>
<body>
<div id="header-background"> </div>
<header>
<h1>
<a href="{{ url_for('default.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('default.about') }}">FAQ</a></li>
</ul>
</nav>
{%- if not no_login_message %}
<nav id="usermenu">
<ul>
{%- if current_user.is_authenticated() %}
<li>Angemeldet als <strong>{{ current_user.uid }}</strong></li>
{%- if current_user.uid in config.get('ADMIN_USERS', []) %}
<li><a href="{{ url_for('admin.index') }}">Admin</a></li>
{%- endif %}
<li><a href="{{ url_for('login.logout') }}">Abmelden</a></li>
{%- else %}
<li>Nicht angemeldet</li>
<li><a href="{{ url_for('login.login') }}">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>
{%- if self.javascript() %}
<script type="text/javascript">
{%- block javascript %}{% endblock -%}
</script>
{%- endif %}
</body>
</html>
|