project/templates/_menu_user.html
author Parth buch <parth.buch.115@gmail.com>
Sat, 01 Oct 2011 03:57:37 +0530
branch2011
changeset 428 d7fefdb4b947
parent 118 78dfa383f6a3
permissions -rw-r--r--
replaced django url tags with get_absolute_url

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

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

        <a href="/{{params.scope }}/logout/">Logout</a>
    {% else %}
        <a href="/{{params.scope }}/login/">Login</a>
    {% endif %}
</div>