summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-01-14 23:01:07 +0000
committerKatolaZ <katolaz@freaknet.org>2018-01-14 23:01:07 +0000
commit91a0ea7f4fa5befa4b491bfd9380e5b8c1f0f7e7 (patch)
treed9f8b20df9264a63d054db77a320f4080d273c7e /template.go
parent704c8957b2d3958ff6e030c0badc75f808ea8a9f (diff)
added search box in templateHEADmaster
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">