project/templates/_menu_user.html
author Parth buch <parth.buch.115@gmail.com>
Fri, 30 Sep 2011 18:53:41 +0530
branch2011
changeset 420 56e520066333
parent 118 78dfa383f6a3
child 428 d7fefdb4b947
permissions -rw-r--r--
removed the t-shirts thing as we are giving t-shirts to all attendes

<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 params.scope %}">My profile</a> |

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

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