mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-09-04 22:50:43 +00:00
Add version to UI
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user