added the custom blocks to display at the top and bottom of the conference list
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user