diff --git a/pkg/html/pages/stats.go b/pkg/html/pages/stats.go index 3bc60cc5d87d..855ad0af86b1 100644 --- a/pkg/html/pages/stats.go +++ b/pkg/html/pages/stats.go @@ -5,6 +5,7 @@ package pages import ( "bytes" + _ "embed" "fmt" "html/template" @@ -20,40 +21,7 @@ func StatsHTML() (template.HTML, error) { return template.HTML(buf.String()), nil } -var statsTemplate = Create(` - - - -{{range $g := .}} -
-{{end}} -`) +//go:embed stats.html +var statsHtml string diff --git a/pkg/html/pages/stats.html b/pkg/html/pages/stats.html new file mode 100644 index 000000000000..d535aac4dbc1 --- /dev/null +++ b/pkg/html/pages/stats.html @@ -0,0 +1,40 @@ +{{/* +Copyright 2024 syzkaller project authors. All rights reserved. +Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. +*/}} + + + + +{{range $g := .}} +
+{{end}}