Ignore:
Timestamp:
Apr 17, 2010, 7:58:23 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
09b7c26
Parents:
ea76b01
git-author:
Alex Dehnert <adehnert@…> (04/17/10 19:57:49)
git-committer:
Alex Dehnert <adehnert@…> (04/17/10 19:58:23)
Message:

Generally improve user account display

When testing, it can be painful to figure out why you can't access pages
because there's no good way to log out or see what account you're using.
This tries to change that, in a way that can also be vaguely useful for
normal users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/remit_templates/index.html

    rea76b01 r0f53aae  
    1111
    1212<ul>
     13    {% if user.is_anonymous %}
     14    <li><a href='{% url login %}'>Login</a></li>
     15    {% endif %}
    1316    <li><a href="{% url request_reimbursement %}">Request reimbursement</a></li>
    1417    {% if perms.vouchers.can_list %}
     
    1821    <li><a href="{% url reporting %}">Reporting</a></li>
    1922    {% endif %}
     23    {% if user.is_authenticated %}
     24    <li><a href='{% url logout %}'>Logout</a></li>
     25    {% endif %}
    2026</ul>
    2127
Note: See TracChangeset for help on using the changeset viewer.