diff options
author | KatolaZ <katolaz@freaknet.org> | 2018-01-14 23:01:07 +0000 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2018-01-14 23:01:07 +0000 |
commit | 91a0ea7f4fa5befa4b491bfd9380e5b8c1f0f7e7 (patch) | |
tree | d9f8b20df9264a63d054db77a320f4080d273c7e | |
parent | 704c8957b2d3958ff6e030c0badc75f808ea8a9f (diff) |
-rw-r--r-- | template.go | 20 |
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"> |