Fixed highlighting

Fixed about page not being highlighted in menu when selected
This commit is contained in:
Arminas 2023-01-05 18:44:44 +02:00 committed by GitHub
parent 185331f10b
commit 68049b58bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -812,6 +812,9 @@ func ApplyServerConfig(db store.IStore, tmplBox *rice.Box) echo.HandlerFunc {
// AboutPage handler
func AboutPage() echo.HandlerFunc {
return func(c echo.Context) error {
return c.Render(http.StatusOK, "about.html", map[string]interface{}{})
return c.Render(http.StatusOK, "about.html", map[string]interface{}{
"baseData": model.BaseData{Active: "about", CurrentUser: currentUser(c)},
})
}
}