]> git.ozlabs.org Git - patchwork/blob - templates/base.html
notifications: add project name to patch update notification
[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 {% if user.is_staff %}
30      <a href="{% url admin:index %}">admin</a> ::
31 {% endif %}
32      <a href="{% url auth_logout %}">logout</a>
33 {% else %}
34      <a href="{% url auth_login %}">login</a>
35      <br/>
36      <a href="{% url patchwork.views.user.register %}">register</a>
37      <br/>
38      <a href="{% url patchwork.views.mail.settings %}">mail settings</a>
39 {% endif %}
40    </div>
41    <div style="clear: both;"></div>
42   </div>
43   <div id="nav">
44    <div id="navleft">
45    {% if project %}
46     <strong>Project</strong>: {{ project.linkname }}
47      :
48      <a href="{% url patchwork.views.patch.list project_id=project.linkname %}"
49       >patches</a>
50      :
51      <a href="{% url patchwork.views.project.project project_id=project.linkname %}"
52       >project info</a>
53     {% if other_projects %}
54      :
55      <a href="{% url patchwork.views.projects %}"
56      >other projects</a>
57      {% endif %}
58     {% else %}
59      <a href="{% url patchwork.views.projects %}"
60      >project list</a>
61     {% endif %}
62    </div>
63    <div id="navright">
64     <a href="{% url patchwork.views.help path="about/" %}">about</a>
65    </div>
66    <div style="clear: both"></div>
67   </div>
68 {% if messages %}
69   <div id="messages">
70   {% for message in messages %}
71    <div class="message">{{ message }}</div>
72   {% endfor %}
73   </div>
74 {% endif %}
75   <div id="content">
76 {% block body %}
77 {% endblock %}
78   </div>
79   <div id="footer">
80    <a href="http://jk.ozlabs.org/projects/patchwork/">patchwork</a>
81    patch tracking system
82   </div>
83  </body>
84 </html>
85
86
87