From b2f03f4753bee19c0c34bf858a0dc5a161bea91f Mon Sep 17 00:00:00 2001 From: Francis Date: Sun, 26 Jul 2020 22:45:43 +0200 Subject: [PATCH] add admin tab in navbar --- templates/base.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index 3979b55..bff8a04 100644 --- a/templates/base.html +++ b/templates/base.html @@ -32,15 +32,22 @@ Hallo, {{ user.username }} + {% if user.is_staff or user.is_superuser %} +
  • + + Admininterface + +
  • + {% endif %}
  • - Log out + Afmelden
  • {% else %}
  • - Log in + Inloggen
  • {% endif %}