Add version to UI

This commit is contained in:
Roman Vynar
2018-08-14 15:37:21 +03:00
parent 80bdad8c91
commit 7a752d3f8d
3 changed files with 6 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ func setupRenderer(debug bool, registryHost, basePath string) *Template {
view := jet.NewHTMLSet("templates")
view.SetDevelopmentMode(debug)
view.AddGlobal("version", version)
view.AddGlobal("basePath", basePath)
view.AddGlobal("registryHost", registryHost)
view.AddGlobal("pretty_size", func(size interface{}) string {