aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html
blob: 847b8b2d21b87f48611164bdeafba1d94cedf9a8 (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
{# 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>
        <main>
            <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') }}">logout</a></li>
                    {% else %}
                    <li><a href="{{ url_for('auth.login') }}">login</a></li>
                    <li><a href="{{ url_for('auth.register') }}">register</a></li>
                    {% endif %}
                </ul>
            </nav>
            {% for msg in get_flashed_messages() %}
                <div class="flashmsg">{{ msg }}</div>
            {% endfor %}

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

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