From 2b9c198c5d6ebc980b9d034f3404561368684894 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Wed, 11 Feb 2026 23:27:53 -0700 Subject: [PATCH] added the custom blocks to display at the top and bottom of the conference list --- conference.go | 11 +++++++++++ docs/MISSINGFUNCS.md | 2 +- ui/views/topiclist.jet | 9 +++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) 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 }} +