added the custom blocks to display at the top and bottom of the conference list

This commit is contained in:
2026-02-11 23:27:53 -07:00
parent 229de44062
commit 2b9c198c5d
3 changed files with 21 additions and 1 deletions
+11
View File
@@ -118,6 +118,17 @@ func Topics(ctxt ui.AmContext) (string, any) {
}
}
topBlock, bottomBlock, err := conf.GetCustomBlocks(ctxt.Ctx())
if err != nil {
return "error", err
}
if topBlock != "" {
ctxt.VarMap().Set("topBlock", topBlock)
}
if bottomBlock != "" {
ctxt.VarMap().Set("bottomBlock", bottomBlock)
}
// create the "read new" URL
urlStem := fmt.Sprintf("/comm/%s/conf/%s", comm.Alias, ctxt.GetScratch("currentAlias"))
if !ctxt.CurrentUser().IsAnon {