summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html
blob: 37edcb8614935920fad5ba25655f5b6ef516b974 (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
{# BASED? BASED ON WHAT? #}
<!DOCTYPE html>
<html>
    <head>
        <title>{%block title %}{% endblock %}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="/static/style.css">
    </head>
    <body>
        <nav>
            <ul>
                <li>
                    <span style="font-family: monospace;"><b>apio</b><i>forum</i>&trade;</span>
                </li>
                <li><a href="{{url_for('index')}}">home</a></li>

                {% if g.user %}
                <li>{{ g.user }}</li>
                <li>
                    <a href="{{ url_for('auth.logout',next=request.path) }}">
                        logout
                    </a>
                </li>
                {% else %}
                <li>
                    <a href="{{ url_for('auth.login',next=request.path) }}">
                        login
                    </a>
                </li>
                <li>
                    <a href="{{ url_for('auth.register',next=request.path) }}">
                        register
                    </a>
                </li>
                {% endif %}
            </ul>
        </nav>

        <div class="header">
        {% block header %}{% endblock %}
        </div>

        {% for msg in get_flashed_messages() %}
            <div class="flashmsg">{{ msg }}</div>
        {% endfor %}

        <main>
            {%block content %}{% endblock %}
        </main>
    <script>/* bees */</script>
    </body>
</html>