diff --git a/templates/table_pkgs.html b/templates/table_pkgs.html
index 879e71e..428ab77 100644
--- a/templates/table_pkgs.html
+++ b/templates/table_pkgs.html
@@ -1,10 +1,11 @@
-{{range .}}
+{{$bp := .BasePath}}
+{{range .Rows}}
- {{.Category}}{{.Dir}}
+ {{.Category}}{{.Dir}}
|
- {{.PkgName}}
+ {{.PkgName}}
|
{{if eq .BuildStatus 0}}
ok |
diff --git a/templates/templates.go b/templates/templates.go
index 0bce505..54094ce 100644
--- a/templates/templates.go
+++ b/templates/templates.go
@@ -124,7 +124,13 @@ func TableBuilds(w io.Writer, b *ddao.Build) {
}
func TablePkgs[T any](w io.Writer, rows []T) {
- t.ExecuteTemplate(w, "table_pkgs.html", rows)
+ s := struct {
+ Rows []T
+ bp
+ }{
+ Rows: rows,
+ }
+ t.ExecuteTemplate(w, "table_pkgs.html", s)
}
func BulkBuildInfo(w io.Writer, b *bulk.Build) {