pcmt/handlers/page.go
surtur ab93161867
All checks were successful
continuous-integration/drone/push Build is passing
go,tmpl: allow conditionally disabling the sign-up
2023-08-16 15:07:10 +02:00

37 lines
657 B
Go

// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: AGPL-3.0-only
package handlers
import moduser "git.dotya.ml/mirre-mt/pcmt/modules/user"
type page struct {
User moduser.User
AppName string
AppVer string
Title string
Name string
CSRF string
DevelMode bool
Current string
Error string
Status string
StatusText string
Data map[string]any
}
func newPage() *page {
data := make(map[string]any, 0)
data["RegistrationAllowed"] = registrationAllowed
p := &page{
AppName: appName,
AppVer: appver,
DevelMode: appIsDevel,
Data: data,
}
return p
}