source: asadb/template/base.html

stablestage
Last change on this file was 5560f6d, checked in by Alex Dehnert <adehnert@…>, 12 years ago

JSify the giant list of groups (ASA-#185)

This requires that Chosen (http://harvesthq.github.io/chosen/) be installed at
media/js/libs/chosen/.

  • Property mode set to 100644
File size: 2.0 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/page-frame.css" />
9    {% block extrahead %}
10    {% endblock %}
11
12  </head>
13  <body>
14    <ul class='tab-navigation'>
15        <li{% ifequal pagename "homepage" %} class='selected'{% endifequal %}><a href="{% url homepage   %}">Home</a></li>
16        <li{% ifequal pagename "groups"   %} class='selected'{% endifequal %}><a href="{% url groups:list %}">Groups</a></li>
17        <li{% ifequal pagename "fysm"     %} class='selected'{% endifequal %}><a href="{% url fysm       %}">FYSM</a></li>
18        <li{% ifequal pagename "midway"     %} class='selected'{% endifequal %}><a href="{% url midway-list %}">Midway</a></li>
19        <li{% ifequal pagename "about"    %} class='selected'{% endifequal %}><a href="{% url about %}">Help &amp; About</a></li>
20        {% if user.is_staff %}<li><a href='{% url admin:index %}'>Admin</a></li>{% endif %}
21    </ul>
22    <div id='content'>
23        <div class='curuser'>
24            <div class='spacer'></div>
25            {% if user.is_authenticated %}
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            {% else %}
33                <p>You are not logged in.</p>
34                <p><a href='{% url login %}?next={% firstof request.path '/' %}'>Login</a></p>
35            {% endif %}
36        </div>
37{% block content %}{% endblock %}
38    <div class='bottom-content'></div>
39    </div>
40  </body>
41</html>
Note: See TracBrowser for help on using the repository browser.