]> git.ozlabs.org Git - patchwork/blob - templates/base.html
Add simple help infrastructure, with an 'about' page.
[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 {% block headers %}{% endblock %}
10  </head>
11  <body>
12   <div id="title">
13   <h1 style="float: left;">
14      <a
15       href="{% url patchwork.views.projects %}">Patchwork</a><span
16       class="beta">&beta;</span>
17     {% block heading %}{% endblock %}</h1>
18   <div id="auth">
19 {% if user.is_authenticated %}
20    Logged in as
21     <a href="{% url patchwork.views.user.profile %}"
22      ><strong>{{ user.username }}</strong></a>
23     <br/>
24      <a href="{% url patchwork.views.user.profile %}">profile</a> ::
25      <a href="{% url patchwork.views.user.todo_lists %}">todo
26       ({{ user.get_profile.n_todo_patches }})</a><br/>
27      <a href="{% url auth_logout %}">logout</a> ::
28      <a href="{% url patchwork.views.help path="about/" %}">about</a>
29 {% else %}
30      <a href="{% url auth_login %}">login</a>
31      <br/>
32      <a href="{% url registration_register %}">register</a>
33      <br/>
34      <a href="{% url patchwork.views.help path="about/" %}">about</a>
35 {% endif %}
36    </div>
37    <div style="clear: both;"></div>
38   </div>
39   <div id="nav">
40   {% if project %}
41    <strong>Project</strong>: {{ project.linkname }}
42     :
43     <a href="{% url patchwork.views.patch.list project_id=project.linkname %}"
44      >patches</a>
45     :
46     <a href="{% url patchwork.views.project project_id=project.linkname %}"
47      >project info</a>
48    {% if other_projects %}
49     :
50     <a href="{% url patchwork.views.projects %}"
51     >other projects</a>
52     {% endif %}
53    {% else %}
54     <a href="{% url patchwork.views.projects %}"
55     >project list</a>
56    {% endif %}
57   </div>
58 {% if messages %}
59   <div id="messages">
60   {% for message in messages %}
61    <div class="message">{{ message }}</div>
62   {% endfor %}
63   </div>
64 {% endif %}
65   <div id="content">
66 {% block body %}
67 {% endblock %}
68   </div>
69   <div id="footer">
70    <a href="http://ozlabs.org/~jk/projects/patchwork">patchwork</a>
71    patch tracking system
72   </div>
73  </body>
74 </html>
75
76
77