From: Matthijs Kooijman Date: Wed, 23 Jan 2008 12:45:56 +0000 (+0100) Subject: * Show the currently logged in user and a logout link on the login page. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=2abc16283f3b06aec8afa42b216a0063acb702f8 * Show the currently logged in user and a logout link on the login page. --- diff --git a/templates/base/login.html b/templates/base/login.html index 834dac4..07bfd33 100644 --- a/templates/base/login.html +++ b/templates/base/login.html @@ -6,6 +6,11 @@

Your username and password didn't match. Please try again.

{% endif %} +{% if user.is_authenticated %} +

You are currently logged in as {{ user.username }}

+

Logout

+{% endif %} +
@@ -14,6 +19,7 @@ + {% endblock %}
{{ form.username }}