]> git.ozlabs.org Git - patchwork/blob - templates/base.html
[html] Reference common.js in base template
[patchwork] / templates / base.html
1 {% load pwurl %}
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
5  <head>
6   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
7   <title>{% block title %}Patchwork{% endblock %} - Patchwork</title>
8   <link rel="stylesheet" type="text/css" href="/css/style.css"/>
9   <script language="JavaScript" type="text/javascript" src="/js/common.js" />
10 {% block headers %}{% endblock %}
11  </head>
12  <body>
13   <div id="title">
14   <h1 style="float: left;">
15      <a
16       href="{% url patchwork.views.projects %}">Patchwork</a><span
17       class="beta">&beta;</span>
18     {% block heading %}{% endblock %}</h1>
19   <div id="auth">
20 {% if user.is_authenticated %}
21    Logged in as
22     <a href="{% url patchwork.views.user.profile %}"
23      ><strong>{{ user.username }}</strong></a>
24     <br/>
25      <a href="{% url patchwork.views.user.todo_lists %}">todo
26       ({{ user.get_profile.n_todo_patches }})</a> ::
27      <a href="{% url patchwork.views.bundle.bundles %}">bundles</a>
28      <br/>
29      <a href="{% url patchwork.views.user.profile %}">profile</a> ::
30      <a href="{% url auth_logout %}">logout</a>
31 {% else %}
32      <a href="{% url auth_login %}">login</a>
33      <br/>
34      <a href="{% url registration_register %}">register</a>
35      <br/>
36      <a href="{% url patchwork.views.help path="about/" %}">about</a>
37 {% endif %}
38    </div>
39    <div style="clear: both;"></div>
40   </div>
41   <div id="nav">
42    <div id="navleft">
43    {% if project %}
44     <strong>Project</strong>: {{ project.linkname }}
45      :
46      <a href="{% url patchwork.views.patch.list project_id=project.linkname %}"
47       >patches</a>
48      :
49      <a href="{% url patchwork.views.project project_id=project.linkname %}"
50       >project info</a>
51     {% if other_projects %}
52      :
53      <a href="{% url patchwork.views.projects %}"
54      >other projects</a>
55      {% endif %}
56     {% else %}
57      <a href="{% url patchwork.views.projects %}"
58      >project list</a>
59     {% endif %}
60    </div>
61    <div id="navright">
62     <a href="{% url patchwork.views.help path="about/" %}">about</a>
63    </div>
64    <div style="clear: both"></div>
65   </div>
66 {% if messages %}
67   <div id="messages">
68   {% for message in messages %}
69    <div class="message">{{ message }}</div>
70   {% endfor %}
71   </div>
72 {% endif %}
73   <div id="content">
74 {% block body %}
75 {% endblock %}
76   </div>
77   <div id="footer">
78    <a href="http://ozlabs.org/~jk/projects/patchwork">patchwork</a>
79    patch tracking system
80   </div>
81  </body>
82 </html>
83
84
85