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/base.html

    rea76b01 r0f53aae  
    2121    </ul>
    2222    <div id='content'>
     23        {% if user.is_authenticated %}
     24        <div class='curuser'>
     25            <div class='spacer'></div>
     26            {% if user.first_name and user.last_name %}
     27            <p>Welcome, {{user.first_name}} {{user.last_name}} &lt;<span class='username'>{{user.username}}</span>&gt;.</p>
     28            {% else %}
     29            <p>Welcome, <span class='username'>{{user.username}}</span>.</p>
     30            {% endif %}
     31            <p><a href='{% url logout %}'>Logout</a></p>
     32        </div>
     33        {% endif %}
    2334{% block content %}{% endblock %}
    2435    </div>
Note: See TracChangeset for help on using the changeset viewer.