Add buildInfo to frontend footer

This commit is contained in:
Christoph Kluge
2022-09-27 09:56:17 +02:00
parent d1fefe16a3
commit 24f9d4f934
5 changed files with 46 additions and 11 deletions

View File

@@ -59,11 +59,18 @@ type User struct {
IsSupporter bool
}
type Build struct {
Version string
Hash string
Buildtime string
}
type Page struct {
Title string // Page title
Error string // For generic use (e.g. the exact error message on /login)
Info string // For generic use (e.g. "Logout successfull" on /login)
User User // Information about the currently logged in user
Build Build // Latest information about the application
Clusters []schema.ClusterConfig // List of all clusters for use in the Header
FilterPresets map[string]interface{} // For pages with the Filter component, this can be used to set initial filters.
Infos map[string]interface{} // For generic use (e.g. username for /monitoring/user/<id>, job id for /monitoring/job/<id>)