Message ID | 20111109192617.3833.55990.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_server/templates/layouts/content.html' --- lava_server/templates/layouts/content.html 2011-11-09 00:23:07 +0000 +++ lava_server/templates/layouts/content.html 2011-11-09 19:21:19 +0000 @@ -59,7 +59,7 @@ src="{{ STATIC_URL }}lava-server/images/avatar-default-symbolic.svg" width="18" height="18"/> {% if user.is_authenticated %} - <a href="{% url lava.me %}" class="username">{{user.get_full_name}}</a> + <a href="{% url lava.me %}" class="username">{{user.get_full_name|default:user.username}}</a> {% else %} <a href="{% url django.contrib.auth.views.login %}" class="username" >{% trans "Guest" %}</a>