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 // create the "read new" URL
urlStem := fmt.Sprintf("/comm/%s/conf/%s", comm.Alias, ctxt.GetScratch("currentAlias")) urlStem := fmt.Sprintf("/comm/%s/conf/%s", comm.Alias, ctxt.GetScratch("currentAlias"))
if !ctxt.CurrentUser().IsAnon { if !ctxt.CurrentUser().IsAnon {
+1 -1
View File
@@ -67,7 +67,7 @@ _(italicized items can be deferred)_
- ~~Remove alias~~ - ~~Remove alias~~
- ~~Add alias~~ - ~~Add alias~~
- ~~Manage members~~ - ~~Manage members~~
- Custom appearance - ~~Custom appearance~~
- Activity reports - Activity reports
- E-mail - E-mail
- Export Messages - Export Messages
+9
View File
@@ -13,6 +13,10 @@
<hr class="border-2 border-gray-400 w-4/5 mb-6"> <hr class="border-2 border-gray-400 w-4/5 mb-6">
</div> </div>
{{ if isset(topBlock) }}
<div class="mb-6">{{ topBlock | raw }}</div>
{{ end }}
<!-- Action Buttons --> <!-- Action Buttons -->
<div class="max-w-6xl mb-6"> <div class="max-w-6xl mb-6">
<div class="flex gap-2 flex-wrap mb-4"> <div class="flex gap-2 flex-wrap mb-4">
@@ -159,4 +163,9 @@
</div> </div>
</div> </div>
</div> </div>
{{ if isset(bottomBlock) }}
<div class="mb-6">{{ bottomBlock | raw }}</div>
{{ end }}
</div> </div>