]> git.donarmstrong.com Git - debbugs.git/blobdiff - templates/en_US/cgi/pkgindex.tmpl
add templating for pkgindex.cgi
[debbugs.git] / templates / en_US / cgi / pkgindex.tmpl
diff --git a/templates/en_US/cgi/pkgindex.tmpl b/templates/en_US/cgi/pkgindex.tmpl
new file mode 100644 (file)
index 0000000..3974f22
--- /dev/null
@@ -0,0 +1,32 @@
+{include(q(html/pre_title))}{html_escape($config{project})} {html_escape($config{bug})} report logs by {html_escape($tag)}{include(q(html/post_title.tmpl))}
+</head>
+<body>
+<h1>{html_escape($config{project})} {html_escape($config{bug})} report logs by {html_escape($tag)}</h1> 
+{$note}
+<form>
+<input type="hidden" name="skip" value="$param{skip}">
+<input type="hidden" name="max_results" value="$param{max_results}">
+<input type="hidden" name="indexon" value="$param{indexon}">
+<input type="hidden" name="repeatmerged" value="$param{repeatmerged}">
+<input type="hidden" name="archive" value="$param{archive}">
+<input type="hidden" name="sortby" value="$param{sortby}">
+{ my $output = '';
+if (defined $param{first}) {
+    $output .= qq(<input type="hidden" name="first" value=").html_escape($param{first}).qq(">\n);
+} else {
+    $output .= q(<p>);
+     if ($param{skip}> 0) {
+        $output .= q(<input type="submit" name="prev" value="Prev">);
+     }
+     if (keys %count > ($param{skip} + $param{max_results})) {
+         $output .= q(<input type="submit" name="next" value="Next">);
+     }
+     $output .= qq(</p>\n);
+}
+$output;
+}
+{ $result }
+<hr/>
+{include(q(html/html_tail))}
+</body>
+</html>