layout.html 2.12 KB
Newer Older
1
2
3
4
5
<!doctype html>
<html>
<head>
    {% block head %}
    <meta charset="utf-8" />
Robin Sonnabend's avatar
Robin Sonnabend committed
6
    <meta name="viewport" content="width=device-width, initial-scale=1">
7
    <meta name="description" content="Protokollsystem" />
Robin Sonnabend's avatar
Robin Sonnabend committed
8
9
    <link rel="stylesheet" href="{{url_for("static", filename="css/bootstrap.min.css")}}">
    <link rel="stylesheet" href="{{url_for("static", filename="css/style.css")}}" />
10
11
12
13
14
15
    {% block additional_js %}
    {% endblock %}
    <title>{% block title %}Unbenannte Seite{% endblock %} - Protokollsystem</title>
    {% endblock %}
</head>
<body>
Robin Sonnabend's avatar
Robin Sonnabend committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Protokolle</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li><a href="{{url_for("index")}}">Zuhause</a></li>
                {# todo: add more links #}
            </ul>
32
33
34
35
36
37
38
            <ul class="nav navbar-nav navbar-right">
                {% if check_login() %}
                <li><a href="{{url_for("logout")}}">Logout</a></li>
                {% else %}
                <li><a href="{{url_for("login")}}">Login</a></li>
                {% endif %}
            </ul>
Robin Sonnabend's avatar
Robin Sonnabend committed
39
40
41
42
        </div>
    </div>
</nav>
<div class="container">
43
44
45
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
Robin Sonnabend's avatar
Robin Sonnabend committed
46
    <div class="alert {{ category }}">
47
48
49
50
51
52
53
54
        {{ message }}
    </div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}
Diese Seite ist leer.
{% endblock %}
Robin Sonnabend's avatar
Robin Sonnabend committed
55

56
</div>
Robin Sonnabend's avatar
Robin Sonnabend committed
57
58
<script src="{{url_for("static", filename="js/jquery.min.js")}}"></script>
<script src="{{url_for("static", filename="js/bootstrap.min.js")}}"></script>
59
</body>