]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/base.html
No help for now.
[patchwork] / templates / patchwork / 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 patchwork.views.user.logout %}">logout</a><!-- ::
28      <a href="/help/">help</a> -->
29 {% else %}
30      <a href="{% url patchwork.views.user.login %}">login</a>
31      <br/>
32      <a href="{% url patchwork.views.user.register %}">register</a>
33      <!--
34      <br/>
35      <a href="/help/">help</a>
36      -->
37 {% endif %}
38    </div>
39    <div style="clear: both;"></div>
40   </div>
41   <div id="nav">
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_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 {% if messages %}
61   <div id="messages">
62   {% for message in messages %}
63    <div class="message">{{ message }}</div>
64   {% endfor %}
65   </div>
66 {% endif %}
67   <div id="content">
68 {% block body %}
69 {% endblock %}
70   </div>
71   <div id="footer">
72    <a href="http://ozlabs.org/~jk/projects/patchwork">patchwork</a>
73    patch tracking system
74   </div>
75  </body>
76 </html>
77
78
79