project/templates/_menu_user.html
changeset 1 fda1c66b25f9
child 104 06b7e950a798
equal deleted inserted replaced
0:9a77edda77b7 1:fda1c66b25f9
       
     1 <div id="menu-user">
       
     2     {% if user.is_authenticated %}
       
     3         {% if user.get_full_name %}
       
     4         <strong>{{ user.get_full_name }} &lt;{{ user.username }}&gt;</strong>
       
     5         {% else %}
       
     6             <strong>{{ user.username }}</strong>
       
     7         {% endif %} |
       
     8 
       
     9         <a href="{% url kiwipycon_account %}">My profile</a> |
       
    10 
       
    11         {% if user.is_superuser %}
       
    12                 <a href="/admin/">Administer</a> |
       
    13         {% endif %}
       
    14 
       
    15         <a href="{% url kiwipycon_logout %}">Logout</a>
       
    16     {% else %}
       
    17         <a href="{% url kiwipycon_login %}">Login</a>
       
    18     {% endif %}
       
    19 </div>