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