project/templates/_menu_user.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 14 Jan 2010 21:05:06 +0530
changeset 89 4ad0ba26ba48
parent 1 fda1c66b25f9
child 96 178b89a3ca4f
permissions -rw-r--r--
Added URL mappers for proceedings to urls.py.

<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="/admin/">Administer</a> |
        {% endif %}

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