From f2aae017802c291e44e6fa9e240317c4e082c2a1 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 7 Feb 2011 14:34:26 -0400 Subject: [PATCH] Display user full name then fallback to username and only display change password link is user has usable password --- apps/main/templates/base.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html index c132f93408..b7a41055aa 100755 --- a/apps/main/templates/base.html +++ b/apps/main/templates/base.html @@ -27,8 +27,10 @@ {% if user.is_anonymous %} {% trans 'Anonymous' %} {% else %} - {{ user }} - ({% trans 'New password' %}) + {{ user.full_name|default:user }} + {% if has_usable_password %} + ({% trans 'New password' %}) + {% endif %} {% endif %} {% if user.is_staff %}