<div id="menu-user"> {% if user.is_authenticated %} {% if user.get_full_name %} <strong>{{ user.get_full_name }} <{{ user.username }}></strong> {% else %} <strong>{{ user.username }}</strong> {% endif %} | <a href="{% url kiwipycon_account %}">My profile</a> | {% if user.is_superuser %} <a href="/admin/">Administer</a> | {% endif %} <a href="{% url kiwipycon_logout %}">Logout</a> {% else %} <a href="{% url kiwipycon_login %}">Login</a> {% endif %} </div>