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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user