]> git.ozlabs.org Git - patchwork/blobdiff - templates/base.html
templates: Add CSRF (cross-site request forgery) values to form posts
[patchwork] / templates / base.html
index 896b93970de93d9d985c5aff66bfe204fef4d3ac..216797f32008df210b40169067384c1aa481fb76 100644 (file)
@@ -1,11 +1,12 @@
-{% load pwurl %}
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+{% 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 style="clear: both;"></div>
   </div>
   <div id="nav">
-  {% 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_id=project.linkname %}"
-     >project info</a>
-   {% if other_projects %}
-    :
-    <a href="{% url patchwork.views.projects %}"
-    >other projects</a>
+   <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 %}
-   {% 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">