diff options
-rw-r--r-- | templates/searchresults.tmpl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/searchresults.tmpl b/templates/searchresults.tmpl new file mode 100644 index 0000000..9768d45 --- /dev/null +++ b/templates/searchresults.tmpl @@ -0,0 +1,34 @@ +#import templates +#extends templates.skeleton +#def title +Debian Project patch tracking system - Search Results +#end def +#def body +<h1>Debian Project patch tracking system</h1> +<h2>Search Results - $idx</h2> +<table class="packagelisting"> +<tr> +<th>package</th> +#for $d in $dists.iterkeys() + <th>$d</th> +#end for +</tr> +#for $p in $sorted($pkgs.iterkeys) +<tr> + <td> + <a name="$p" /> + <a href="http://packages.debian.org/$p">$p</a> + </td> + #for $d in $dists.iterkeys() + <td> + #if $pkgs[$p].has_key($d) + <a href="$conf.root_url/package/$p/$pkgs[$p][$d].version">$pkgs[$p][$d].version</a> + #else + <i>n/a</i> + #end if + </td> + #end for +</tr> +#end for +</table> +#end def |