feat: show build commit on admin page

This commit is contained in:
root
2026-03-24 23:51:42 +01:00
parent fc67533db9
commit fa8c6d02fd
5 changed files with 20 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package web
import (
"ResendIt/internal/buildinfo"
"ResendIt/internal/file"
"os"
"strconv"
@@ -108,9 +109,10 @@ func (h *Handler) AdminPage(c *gin.Context) {
totalPages := (totalCount + limit - 1) / limit
c.HTML(200, "admin.html", gin.H{
"Files": adminFiles,
"Page": page,
"TotalPages": totalPages,
"Files": adminFiles,
"Page": page,
"TotalPages": totalPages,
"BuildCommit": buildinfo.Commit,
})
}