summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2008-06-02 02:14:21 +0200
committerSean Finney <seanius@debian.org>2008-06-02 02:14:21 +0200
commit8ae6627249e5d6a7fc02d3280dc3818fd64f21aa (patch)
treeb173894c196823cc58500a3841f41a1850c06917 /templates
parentd84c4c56500e5de9109507cf46476505d4b1d0a9 (diff)
downloadpatch-tracker-8ae6627249e5d6a7fc02d3280dc3818fd64f21aa.tar.gz
first shot at patch handling/mangling/markup
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/package-vers.tmpl30
1 files changed, 21 insertions, 9 deletions
diff --git a/templates/package-vers.tmpl b/templates/package-vers.tmpl
index ac08db2..17689c7 100755
--- a/templates/package-vers.tmpl
+++ b/templates/package-vers.tmpl
@@ -31,21 +31,31 @@
</table>
#if $src.diffgz
- <h2> Entire "Debian diff" Information </h2>
+ <h2> "Debian diff" Information </h2>
<table class="patchlisting">
<tr>
<th>Diff file</th>
- <td>
- <a href="$conf.root_url/$src.loc/$src.diffgz['name']">
+ <td colspan="2">
+ <a href="$conf.archive_root_url/$src.loc/$src.diffgz['name']">
$src.diffgz['name']
</a>
</td>
</tr>
<tr>
- <th>Size</th><td>$src.diffgz['size']</td>
+ <th>Size</th><td colspan="2">$src.diffgz['size']</td>
</tr>
<tr>
- <th>MD5sum</th><td>$src.diffgz['md5sum']</td>
+ <th>MD5sum</th><td colspan="2">$src.diffgz['md5sum']</td>
+ </tr>
+ <tr>
+ <th>./debian only changes</th>
+ <td><a href="$conf.root_url/packages/$src.name/$src.version/${src.debianonlydiff}.html">view</a></td>
+ <td><a href="$conf.root_url/packages/$src.name/$src.version/$src.debianonlydiff">download</a></td>
+ </tr>
+ <tr>
+ <th>non packaging (i.e. not ./debian) changes</th>
+ <td><a href="$conf.root_url/packages/$src.name/$src.version/${src.nondebiandiff}.html">view</a></td>
+ <td><a href="$conf.root_url/packages/$src.name/$src.version/$src.nondebiandiff">download</a></td>
</tr>
</table>
#end if
@@ -63,6 +73,7 @@
</table>
#end if
+#if $src.seriespatches
<h2> "series" style patches </h2>
<table class="patchlisting">
<tr>
@@ -71,14 +82,15 @@
<th>view</th>
<th>raw</th>
</tr>
-#for $p in $src.seriespatches
+#for $p,$d in $src.seriespatches.iteritems()
<tr>
<td>$p</td>
- <td>info</td>
- <td><a href="link">view</a></td>
- <td><a href="link">download</a></td>
+ <td class="diffstat"><pre><code>$d</code></pre></td>
+ <td><a href="$conf.root_url/packages/$src.name/$src.version/series/${p}.html">view</a></td>
+ <td><a href="$conf.root_url/packages/$src.name/$src.version/series/${p}">download</a></td>
</tr>
#end for
</table>
+#end if
</body>
</html>