From 6505fcd0e47ba30bc0270f4c46cb6b198905389a Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 19 Oct 2010 19:41:39 +0200 Subject: [PATCH] tickets: Show the currently logged in user on every page. --- tickets/templates/tickets/base.html | 7 +++++++ 1 file changed, 7 insertions(+) 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 %} -- 2.30.2