control/info: Setup template inheritance

This commit is contained in:
Tom Wiesing 2022-10-19 19:39:04 +02:00
parent e5cd57cb7d
commit dd7be3f520
No known key found for this signature in database
12 changed files with 768 additions and 758 deletions

View file

@ -13,9 +13,12 @@ import (
"golang.org/x/sync/errgroup"
)
//go:embed "html/index.html"
//go:embed "html/info_index.html"
var indexTemplateStr string
var indexTemplate = static.AssetsControlIndex.MustParse(indexTemplateStr)
var indexTemplate = static.AssetsControlIndex.MustParse(
base("info_index.html"),
indexTemplateStr,
)
type indexPageContext struct {
Time time.Time