1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-31 18:31:01 +00:00

Show Git commit in about page

This commit is contained in:
Frédéric Guillot 2020-10-28 21:22:06 -07:00
parent a37a2dd043
commit d70b4d39ab
3 changed files with 4 additions and 1 deletions

View file

@ -24,6 +24,7 @@ func (h *handler) showAboutPage(w http.ResponseWriter, r *http.Request) {
sess := session.New(h.store, request.SessionID(r))
view := view.New(h.tpl, r, sess)
view.Set("version", version.Version)
view.Set("commit", version.Commit)
view.Set("build_date", version.BuildDate)
view.Set("menu", "settings")
view.Set("user", user)