project/templates/_menu_user.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 11 May 2010 03:48:47 +0530
changeset 96 3ece0de11641
parent 1 fda1c66b25f9
child 104 06b7e950a798
permissions -rw-r--r--
Modify views and templates for proceedings to work.

<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>