blob: 666068678596526bb2e7df273647f3a4a8a6b43c (
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['username'] }}</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>
|