added the database version number (will be important later) and revamped the About page a bit, to include the database version number

This commit is contained in:
2026-03-05 22:02:26 -07:00
parent f5360772ca
commit 5f67d8ce16
7 changed files with 49 additions and 37 deletions
+7
View File
@@ -240,6 +240,13 @@ func TopPage(ctxt ui.AmContext) (string, any) {
* Data as a parameter for the command string.
*/
func AboutPage(ctxt ui.AmContext) (string, any) {
// Set the database version.
g, err := database.AmGlobals(ctxt.Ctx())
if err != nil {
return "error", err
}
ctxt.VarMap().Set("dbVersion", g.Version)
// Set the page title.
ctxt.SetFrameTitle("About Amsterdam")
return "framed", "about.jet"