project/templates/_menu_user.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 13 Jul 2010 17:00:55 +0530
changeset 106 7ebd3a7e8ccf
parent 104 06b7e950a798
permissions -rw-r--r--
Revert all leading /2009 from URL Patters since this is now handled in Apache on server.

<div id="menu-user">
    {% if user.is_authenticated %}
        {% if user.get_full_name %}
        <strong>{{ user.get_full_name }} &lt;{{ user.username }}&gt;</strong>
        {% else %}
            <strong>{{ user.username }}</strong>
        {% endif %} |

        <a href="{% url kiwipycon_account %}">My profile</a> |

        {% if user.is_superuser %}
                <a href="//2009/admin/">Administer</a> |
        {% endif %}

        <a href="{% url kiwipycon_logout %}">Logout</a>
    {% else %}
        <a href="{% url kiwipycon_login %}">Login</a>
    {% endif %}
</div>