summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go20
1 files changed, 18 insertions, 2 deletions
diff --git a/template.go b/template.go
index 97d8e5d..85a93f8 100644
--- a/template.go
+++ b/template.go
@@ -1,8 +1,8 @@
package main
var pkgTempl = `<html>
-<body>
-<title>{{.Name}}-{{.Version}}</title>
+<html>
+<title>Devuan Packages Information -- {{.Name}}-{{.Version}}</title>
<style type="text/css">
body {
margin-top: 10px;
@@ -63,6 +63,22 @@ div.provides{
</style>
+
+<body>
+<div class="search_form">
+<form method="GET" action="/cgi-bin/d1pkgweb-query">
+Search Devuan Packages for: <input type="text" name="search"/> in release
+<select name="release">
+<option value="jessie" selected>Jessie 1.0.0</option>
+<option value="ascii" >Ascii</option>
+<option value="ceres" >Ceres (unstable) 1.0.0</option>
+<option value="experimental" >Experimental 1.0.0</option>
+<option value="any" >Any</option>
+</select>
+<input type="submit" value="Go!"/>
+</form>
+</div>
+
<div class="pkgname">{{.Name}} {{.Version}} [{{.Section}} - {{.Priority}}]</div>
<div class="pkg_suite">[{{.Suite}} - {{.Component}}]</div>
<div class="description">