mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-18 16:21:24 +00:00
Add version to UI
This commit is contained in:
parent
80bdad8c91
commit
7a752d3f8d
@ -39,6 +39,7 @@ func setupRenderer(debug bool, registryHost, basePath string) *Template {
|
|||||||
view := jet.NewHTMLSet("templates")
|
view := jet.NewHTMLSet("templates")
|
||||||
view.SetDevelopmentMode(debug)
|
view.SetDevelopmentMode(debug)
|
||||||
|
|
||||||
|
view.AddGlobal("version", version)
|
||||||
view.AddGlobal("basePath", basePath)
|
view.AddGlobal("basePath", basePath)
|
||||||
view.AddGlobal("registryHost", registryHost)
|
view.AddGlobal("registryHost", registryHost)
|
||||||
view.AddGlobal("pretty_size", func(size interface{}) string {
|
view.AddGlobal("pretty_size", func(size interface{}) string {
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
{{yield body()}}
|
{{yield body()}}
|
||||||
|
|
||||||
<div style="padding: 10px 0; margin-bottom: 20px">
|
<div style="padding: 10px 0; margin-bottom: 20px">
|
||||||
<div style="float: left">
|
<div style="text-align: center; color:darkgrey">
|
||||||
© 2017-2018 <a href="https://goquiq.com">Quiq Inc.</a>
|
Docker Registry UI v{{version}} © 2017-2018 <a href="https://goquiq.com">Quiq Inc.</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
3
version.go
Normal file
3
version.go
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
const version = "0.7.3"
|
Loading…
Reference in New Issue
Block a user