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 {
+1 -1
View File
@@ -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
+9
View File
@@ -13,6 +13,10 @@
<hr class="border-2 border-gray-400 w-4/5 mb-6">
</div>
{{ if isset(topBlock) }}
<div class="mb-6">{{ topBlock | raw }}</div>
{{ end }}
<!-- Action Buttons -->
<div class="max-w-6xl mb-6">
<div class="flex gap-2 flex-wrap mb-4">
@@ -159,4 +163,9 @@
</div>
</div>
</div>
{{ if isset(bottomBlock) }}
<div class="mb-6">{{ bottomBlock | raw }}</div>
{{ end }}
</div>