Add admin panel, arbitrary queries

This commit is contained in:
David Hoppenbrouwers
2022-10-08 23:40:35 +02:00
parent 5773bce507
commit e3af03bbac
9 changed files with 290 additions and 10 deletions

View File

@@ -12,6 +12,10 @@
{% if user is not none %}
<a href="{{ url_for('user_edit') }}">{{ user.name }}</a>
<span>|</span>
{% if user.is_admin() %}
<a href="{{ url_for('admin') }}">Admin panel</a>
<span>|</span>
{% endif %}
<a href="{{ url_for('logout') }}">Logout</a>
{% else %}
<a href="{{ url_for('register') }}">Register</a>