summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'apioforum/templates/base.html')
-rw-r--r--apioforum/templates/base.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html
new file mode 100644
index 0000000..6660686
--- /dev/null
+++ b/apioforum/templates/base.html
@@ -0,0 +1,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>
+