project/templates/_menu_user.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 13 Jul 2010 23:40:34 +0530
changeset 96 178b89a3ca4f
parent 1 fda1c66b25f9
child 118 78dfa383f6a3
permissions -rw-r--r--
Removed unwanted files and made more changes to make SciPyCon a clean app.

<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 scipycon_account %}">My profile</a> |

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

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