diff --git a/conference.go b/conference.go index 594d957..3c22619 100644 --- a/conference.go +++ b/conference.go @@ -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 { diff --git a/docs/MISSINGFUNCS.md b/docs/MISSINGFUNCS.md index 74d44c0..c4a1964 100644 --- a/docs/MISSINGFUNCS.md +++ b/docs/MISSINGFUNCS.md @@ -67,7 +67,7 @@ _(italicized items can be deferred)_ - ~~Remove alias~~ - ~~Add alias~~ - ~~Manage members~~ - - Custom appearance + - ~~Custom appearance~~ - Activity reports - E-mail - Export Messages diff --git a/ui/views/topiclist.jet b/ui/views/topiclist.jet index d054dc9..f8f184b 100644 --- a/ui/views/topiclist.jet +++ b/ui/views/topiclist.jet @@ -13,6 +13,10 @@
+ {{ if isset(topBlock) }} +
{{ topBlock | raw }}
+ {{ end }} +
@@ -159,4 +163,9 @@
+ + {{ if isset(bottomBlock) }} +
{{ bottomBlock | raw }}
+ {{ end }} +