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