summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index 6e4e403..decff78 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -12,7 +12,27 @@
{%- endfor %}
</head>
<body>
+
<h1>{% if title %}{{ title }}{% else %}spline accounts{% endif %}</h1>
+
+ {%- if session.username %}
+ <p>Logged in as {{ session.username }}. <a href="{{ url_for('logout') }}">Log out</a></p>
+ {%- else %}
+ <p>Not logged in. <a href="{{ url_for('index') }}">Log in</a></p>
+ {%- endif %}
+
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+ <ul class=flashes>
+ {% for message in messages %}
+ <li>{{ message }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% endwith %}
+
{% block content %}{% endblock %}
+
+ <pre>{{ session.__repr__() }}</pre>
</body>
</html>