Skip to content

Commit

Permalink
add footer version
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Mar 25, 2022
1 parent 63e9922 commit 45760bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions page.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@
<div id="theprogress">
<div id="thebar"></div>
</div>
<div>
<small><a href="https://github.com/deadc0de6/uad">uad version {{ .Version }}</a></small>
</div>
</footer>
</body>
</html>
2 changes: 2 additions & 0 deletions uad.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type Param struct {
// TmplData template parameters
type TmplData struct {
Title string
Version string
UploadPath string
EnableUploads bool
EnableDownloads bool
Expand Down Expand Up @@ -291,6 +292,7 @@ func viewHandler(param *Param) func(http.ResponseWriter, *http.Request) {

data := TmplData{
Title: title,
Version: version,
UploadPath: uploadPath,
EnableUploads: param.EnableUploads,
EnableDownloads: param.EnableDownloads,
Expand Down

0 comments on commit 45760bb

Please sign in to comment.