summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/__init__.py0
-rw-r--r--templates/frontpage.tmpl19
-rw-r--r--templates/letter_toc.tmpl (renamed from templates/letter-toc.tmpl)17
-rwxr-xr-xtemplates/package_vers.tmpl (renamed from templates/package-vers.tmpl)18
-rw-r--r--templates/skeleton.tmpl11
5 files changed, 33 insertions, 32 deletions
diff --git a/templates/__init__.py b/templates/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/templates/__init__.py
diff --git a/templates/frontpage.tmpl b/templates/frontpage.tmpl
index 6bf9b34..e283f98 100644
--- a/templates/frontpage.tmpl
+++ b/templates/frontpage.tmpl
@@ -1,17 +1,14 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
- <head>
- <title> Debian Project patch tracking system </title>
- <link rel="stylesheet" type="text/css" href="$conf.root_url/css/patches.css"/>
- </head>
-<body>
+#import templates
+#extends templates.skeleton
+#def title
+Debian Project patch tracking system
+#end def
+#def body
<h1>Debian Project patch tracking system</h1>
- <h2>Browse patches by package name</h2>
+ <h2>Browse patches by package name</h2>
#for $k in $allindex.pkgs.iterkeys()
#if $allindex.pkgs[$k]
<a href="index/$k">$k</a>
#end if
#end for
- </body>
-</html>
+#end def
diff --git a/templates/letter-toc.tmpl b/templates/letter_toc.tmpl
index e25cd4d..0f2ba02 100644
--- a/templates/letter-toc.tmpl
+++ b/templates/letter_toc.tmpl
@@ -1,11 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
- <head>
- <title>Debian Project patch tracking system</title>
- <link rel="stylesheet" type="text/css" href="$conf.root_url/css/patches.css"/>
- </head>
-<body>
+#import templates
+#extends templates.skeleton
+#def title
+Debian Project patch tracking system
+#end def
+#def body
<h1>Debian Project patch tracking system</h1>
<h2>Packaging patches by index - $idx</h2>
<table class="packagelisting">
@@ -28,5 +26,4 @@
</tr>
#end for
</table>
-</body>
-</html>
+#end def
diff --git a/templates/package-vers.tmpl b/templates/package_vers.tmpl
index 17689c7..348c389 100755
--- a/templates/package-vers.tmpl
+++ b/templates/package_vers.tmpl
@@ -1,12 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
- <head>
- <title>debian specific patch information for $src.name / $suite</title>
- <link rel="stylesheet" type="text/css" href="$conf.root_url/css/patches.css"/>
- </head>
-
- <body>
+#import templates
+#extends templates.skeleton
+#def title
+debian specific patch information for $src.name / $suite
+#end def
+#def body
<h1>debian specific patch information for $src.name / $suite</h1>
<h2> Summary </h2>
<table class="summary">
@@ -92,5 +89,4 @@
#end for
</table>
#end if
- </body>
-</html>
+#end def
diff --git a/templates/skeleton.tmpl b/templates/skeleton.tmpl
new file mode 100644
index 0000000..cd4ff12
--- /dev/null
+++ b/templates/skeleton.tmpl
@@ -0,0 +1,11 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <head>
+ <title>$title</title>
+ <link rel="stylesheet" type="text/css" href="$conf.root_url/css/patches.css"/>
+ </head>
+ <body>
+ $body
+ </body>
+</html>