diff options
author | Marian Sigler <m@qjym.de> | 2012-10-01 01:39:17 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-10-01 01:39:17 +0200 |
commit | 1cf89afc3c3d7fc9735597c768501ede19206a69 (patch) | |
tree | 23b8e08adfe8d0ed4e62936d12e12121dbffef5f /templates/base.html | |
parent | e712284e6dacc85677da480ff0be03c524d85d9a (diff) | |
download | web-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.html | 3 |
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> |