Shorter SHA in footer
This commit is contained in:
10
handlers.go
10
handlers.go
@@ -18,14 +18,16 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Footer struct {
|
type Footer struct {
|
||||||
BuildDate string
|
BuildDate string
|
||||||
BuildId string
|
BuildId string
|
||||||
|
BuildIdShort string
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeFooter() Footer {
|
func makeFooter() Footer {
|
||||||
return Footer{
|
return Footer{
|
||||||
BuildDate: getBuildDate(),
|
BuildDate: getBuildDate(),
|
||||||
BuildId: getGitSHA(),
|
BuildId: getGitSHA(),
|
||||||
|
BuildIdShort: getGitSHA()[0:7],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
.footer {
|
.footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
|
flex-wrap: wrap;
|
||||||
color: lightgray;
|
color: lightgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="build-id">
|
<div class="build-id">
|
||||||
Build ID: <a
|
Build ID: <a
|
||||||
href="https://github.com/cwpearson/ytdlp-site/compare/{{.Footer.BuildId}}..master">{{.Footer.BuildId}}</a>
|
href="https://github.com/cwpearson/ytdlp-site/compare/{{.Footer.BuildId}}..master">{{.Footer.BuildIdShort}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Reference in New Issue
Block a user