summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: 9f09b5942df44863c8245199077cc47388a57327 (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
{% 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 %}</title>
  <link rel="stylesheet" type="text/css" href="/css/patchmetrics.css"/>
  <link rel="stylesheet" type="text/css"
    href="http://yui.yahooapis.com/3.3.0/build/cssgrids/grids-min.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 patchmetrics.views.frontpage %}" alt="Linaro patches">
      <img src="/images/linaro-logo.png" /></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 auth_logout %}">logout</a>
{% else %}
     <br/>
     <a href="{{ login_url }}">login</a>
     <br/>
{% endif %}
   </div>
   <div style="clear: both;"></div>
  </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>