From: Matthijs Kooijman Date: Tue, 19 Oct 2010 17:41:39 +0000 (+0200) Subject: tickets: Show the currently logged in user on every page. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6505fcd0e47ba30bc0270f4c46cb6b198905389a;p=matthijs%2Fprojects%2Fdorestad-bookings.git tickets: Show the currently logged in user on every page. --- diff --git a/tickets/templates/tickets/base.html b/tickets/templates/tickets/base.html index f1a07b8..6c43fc9 100644 --- a/tickets/templates/tickets/base.html +++ b/tickets/templates/tickets/base.html @@ -43,6 +43,10 @@ didn't work with margin-right for some reason */ padding-right: 15px; } + .username { + /* Center the username display */ + text-align: center; + } @@ -50,5 +54,8 @@ {% block content %} {% endblock %} +{% if user.is_authenticated %} +

Ingelogd als {{ user.username }} — Uitloggen

+{% endif %}