client
Last change
on this file since 0f53aae was
0f53aae,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
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.
|
-
Property mode set to
100644
|
File size:
1.7 KB
|
Line | |
---|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
4 | <head> |
---|
5 | <title>{% block title %}TITLE{% endblock %}</title> |
---|
6 | |
---|
7 | <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style/style.css" /> |
---|
8 | <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style/default.css" /> |
---|
9 | |
---|
10 | </head> |
---|
11 | <body> |
---|
12 | <ul class='tab-navigation'> |
---|
13 | <li{% ifequal pagename "homepage" %} class='selected'{% endifequal %}><a href="{% url homepage %}">Home</a></li> |
---|
14 | <li{% ifequal pagename "request_reimbursement" %} class='selected'{% endifequal %}><a href="{% url request_reimbursement %}">Request reimbursement</a></li> |
---|
15 | {% if perms.vouchers.can_list %} |
---|
16 | <li{% ifequal pagename "list_requests" %} class='selected'{% endifequal %}><a href="{% url list_requests %}">List requests</a></li> |
---|
17 | {% endif %} |
---|
18 | {% if perms.finance_core.use_reporting %} |
---|
19 | <li{% ifequal pagename "reporting" %} class='selected'{% endifequal %}><a href="{% url reporting %}">Reporting</a></li> |
---|
20 | {% endif %} |
---|
21 | </ul> |
---|
22 | <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}} <<span class='username'>{{user.username}}</span>>.</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 %} |
---|
34 | {% block content %}{% endblock %} |
---|
35 | </div> |
---|
36 | </body> |
---|
37 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.