diff --git a/cmds/server/server.go b/cmds/server/server.go index 76d5e00a..60b7338d 100644 --- a/cmds/server/server.go +++ b/cmds/server/server.go @@ -110,6 +110,7 @@ func main() { } registry.DB_Name = DBName + registry.GitCommit = GitCommit // registry.DB_InitFunc = InitDB InitDB() diff --git a/registry/const.go b/registry/const.go index 4fae8c10..7bdcbf8b 100644 --- a/registry/const.go +++ b/registry/const.go @@ -3,6 +3,7 @@ package registry import "os" var TESTING = (os.Getenv("TESTING") != "") +var GitCommit = "" const SPECVERSION = "0.5" const XREGSCHEMA = "xRegistry-json" diff --git a/registry/httpStuff.go b/registry/httpStuff.go index 6d85366a..5755d2f5 100644 --- a/registry/httpStuff.go +++ b/registry/httpStuff.go @@ -477,9 +477,16 @@ func (pw *PageWriter) Done() { display: inline ; margin-bottom: 10px ; } + #commit { + font-size: 12px ; + font-family: courier ; + position: fixed ; + bottom: 0 ; + z-index: 0 ; + } textarea { margin-bottom: 10px ; - min-width: 100%% ; + min-width: 100%% ; } #filters { display: block ; @@ -512,7 +519,7 @@ func (pw *PageWriter) Done() { li { white-space: nowrap ; cursor: pointer ; - list-style-type: circle ; + list-style-type: circle ; }
@@ -530,6 +537,9 @@ func (pw *PageWriter) Done() { structureButton+`
+
Commit: `+fmt.Sprintf("%.12s", GitCommit)+`