blob: 4123d7f0495de41d5b91ddeb05fa2715f6d0d91d (
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
|
{%- set styles = ['layout.css', 'bootstrap-form.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('settings') if g.user else 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>
{%- if g.user.uid in config.get('ADMIN_USERS', []) %}
<li><a href="{{ url_for('admin') }}">Admin</a></li>
{%- endif %}
<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>
{%- if self.javascript() %}
<script type="text/javascript">
{%- block javascript %}{% endblock -%}
</script>
{%- endif %}
</body>
</html>
|