summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: e58cea92f8de9f164fc144cd495604ae38a06b53 (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
{% 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="/css/grids-min.css">
  <script language="JavaScript" type="text/javascript" src="/js/common.js">
  </script>
  {% block headers %}{% endblock %}
  <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-16756069-9']);
    _gaq.push(['_trackPageview']);
    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript';
      ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(ga, s);
    })();
  </script>
 </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">
    <a href="{% url patchwork.views.user.profile %}"
      ><strong>My dashboard</strong></a>
    {% if user.is_authenticated %}
      <br />({{ user.username }})
      <br/><a href="{% url auth_logout %}">logout</a>
    {% 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>