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

Display Go version on /about

Translations are copy-paste best effort from the equivalent Postgres
string, and might not account for grammatical gender, etc.
This commit is contained in:
Alex Cohn 2022-01-22 09:44:26 -06:00 committed by Frédéric Guillot
parent 93277f4307
commit 7111b3749d
16 changed files with 18 additions and 1 deletions

View file

@ -6,6 +6,7 @@ package ui // import "miniflux.app/ui"
import (
"net/http"
"runtime"
"miniflux.app/config"
"miniflux.app/http/request"
@ -33,6 +34,7 @@ func (h *handler) showAboutPage(w http.ResponseWriter, r *http.Request) {
view.Set("countErrorFeeds", h.store.CountUserFeedsWithErrors(user.ID))
view.Set("globalConfigOptions", config.Opts.SortedOptions(true))
view.Set("postgres_version", h.store.DatabaseVersion())
view.Set("go_version", runtime.Version())
html.OK(w, r, view.Render("about"))
}