Skip to content

Commit

Permalink
add commit msg to ui
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Davis <duglin@gmail.com>
  • Loading branch information
duglin committed Nov 5, 2024
1 parent c498101 commit a72bc49
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmds/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func main() {
}

registry.DB_Name = DBName
registry.GitCommit = GitCommit
// registry.DB_InitFunc = InitDB
InitDB()

Expand Down
1 change: 1 addition & 0 deletions registry/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package registry
import "os"

var TESTING = (os.Getenv("TESTING") != "")
var GitCommit = "<n/a>"

const SPECVERSION = "0.5"
const XREGSCHEMA = "xRegistry-json"
Expand Down
14 changes: 12 additions & 2 deletions registry/httpStuff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down Expand Up @@ -512,7 +519,7 @@ func (pw *PageWriter) Done() {
li {
white-space: nowrap ;
cursor: pointer ;
list-style-type: circle ;
list-style-type: circle ;
}
</style>
<div id=left>
Expand All @@ -530,6 +537,9 @@ func (pw *PageWriter) Done() {
structureButton+`
</div>
</div>
<div id=commit><a target=_blank
href="http://github.com/duglin/xreg-github/tree/`+
GitCommit+`">Commit: `+fmt.Sprintf("%.12s", GitCommit)+`</a></div>
</div>
<script>
Expand Down

0 comments on commit a72bc49

Please sign in to comment.