summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-10-01 01:39:17 +0200
committerMarian Sigler <m@qjym.de>2012-10-01 01:39:17 +0200
commit1cf89afc3c3d7fc9735597c768501ede19206a69 (patch)
tree23b8e08adfe8d0ed4e62936d12e12121dbffef5f /templates/base.html
parente712284e6dacc85677da480ff0be03c524d85d9a (diff)
downloadweb-1cf89afc3c3d7fc9735597c768501ede19206a69.tar.gz
web-1cf89afc3c3d7fc9735597c768501ede19206a69.tar.bz2
web-1cf89afc3c3d7fc9735597c768501ede19206a69.zip
Add admin panel: Allow creation of usernames that are in the blacklist.
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index 4f2b22b..4123d7f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -33,6 +33,9 @@
<ul>
{%- if g.user %}
<li>Angemeldet als <strong>{{ g.user.uid }}</strong></li>
+ {%- if g.user.uid in config.get('ADMIN_USERS', []) %}
+ <li><a href="{{ url_for('admin') }}">Admin</a></li>
+ {%- endif %}
<li><a href="{{ url_for('logout') }}">Abmelden</a></li>
{%- else %}
<li>Nicht angemeldet</li>