summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html
blob: 28fd05590daf8f616fdbefc00dd25588d1a4eb73 (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
{# BASED? BASED ON WHAT? #}
<!DOCTYPE html>
<html>
    <head>
        <title>{%block title %}{% endblock %}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body>
        <nav>
            <h1>apioforum</h1>
            <ul>
                {% 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>
           
        {% block header %}{% endblock %}
        {% for msg in get_flashed_messages() %}
            <div class="flash">{{ msg }}</div>
        {% endfor %}
        {%block content %}{% endblock %}
    </body>
</html>