summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html.j2
diff options
context:
space:
mode:
Diffstat (limited to 'apioforum/templates/base.html.j2')
-rw-r--r--apioforum/templates/base.html.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/apioforum/templates/base.html.j2 b/apioforum/templates/base.html.j2
index 01339c1..6660686 100644
--- a/apioforum/templates/base.html.j2
+++ b/apioforum/templates/base.html.j2
@@ -6,6 +6,19 @@
<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>