client
Last change
on this file since ad530b4 was
5865e5f,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
Add JQuery to the base template
|
-
Property mode set to
100644
|
File size:
1.9 KB
|
Rev | Line | |
---|
[32e360b] | 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 | |
---|
[5cbf234] | 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" /> |
---|
[5865e5f] | 9 | <script type="text/javascript" |
---|
| 10 | src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
---|
| 11 | |
---|
[32e360b] | 12 | |
---|
| 13 | </head> |
---|
| 14 | <body> |
---|
[3a0c51b] | 15 | <ul class='tab-navigation'> |
---|
| 16 | <li{% ifequal pagename "homepage" %} class='selected'{% endifequal %}><a href="{% url homepage %}">Home</a></li> |
---|
| 17 | <li{% ifequal pagename "request_reimbursement" %} class='selected'{% endifequal %}><a href="{% url request_reimbursement %}">Request reimbursement</a></li> |
---|
| 18 | <li{% ifequal pagename "list_requests" %} class='selected'{% endifequal %}><a href="{% url list_requests %}">List requests</a></li> |
---|
[ea76b01] | 19 | {% if perms.finance_core.use_reporting %} |
---|
[ed4ccc7] | 20 | <li{% ifequal pagename "reporting" %} class='selected'{% endifequal %}><a href="{% url reporting %}">Reporting</a></li> |
---|
[ea76b01] | 21 | {% endif %} |
---|
[0671644] | 22 | {% if user.is_staff %} |
---|
| 23 | <li><a href='{% url admin:index %}'>Django Admin</a></li> |
---|
| 24 | {% endif %} |
---|
[3a0c51b] | 25 | </ul> |
---|
| 26 | <div id='content'> |
---|
[0f53aae] | 27 | {% if user.is_authenticated %} |
---|
| 28 | <div class='curuser'> |
---|
| 29 | <div class='spacer'></div> |
---|
| 30 | {% if user.first_name and user.last_name %} |
---|
| 31 | <p>Welcome, {{user.first_name}} {{user.last_name}} <<span class='username'>{{user.username}}</span>>.</p> |
---|
| 32 | {% else %} |
---|
| 33 | <p>Welcome, <span class='username'>{{user.username}}</span>.</p> |
---|
| 34 | {% endif %} |
---|
| 35 | <p><a href='{% url logout %}'>Logout</a></p> |
---|
| 36 | </div> |
---|
| 37 | {% endif %} |
---|
[32e360b] | 38 | {% block content %}{% endblock %} |
---|
[3a0c51b] | 39 | </div> |
---|
[32e360b] | 40 | </body> |
---|
| 41 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.