put the Manage and Create New buttons on the Conference List page

This commit is contained in:
2026-01-31 22:43:59 -07:00
parent 38ed57d207
commit 84df44cad2
3 changed files with 18 additions and 1 deletions
+2
View File
@@ -46,6 +46,8 @@ func Conferences(ctxt ui.AmContext) (string, any, error) {
return ui.ErrorPage(ctxt, err)
}
ctxt.VarMap().Set("conferences", clist)
ctxt.VarMap().Set("canCreate", comm.TestPermission("Community.Create", ctxt.EffectiveLevel()))
ctxt.VarMap().Set("canManage", comm.TestPermission("Community.Create", ctxt.EffectiveLevel()))
return "framed_template", "conflist.jet", err
}
+3
View File
@@ -11,6 +11,7 @@ _(italicized items can be deferred)_
- _Calendar (top menu link)_
- _Chat (top menu link)_
- _Documentation (top menu link)_
- Quote banner rotation
- Sysadmin Menu:
- Edit Global Properties
- View/Edit IP Address Bans
@@ -20,6 +21,8 @@ _(italicized items can be deferred)_
- Import User Accounts
- Conferences list:
- Find
- Manage
- Create New
- Community Admin Menu:
- Set Community Category
- Set Community Services
+13 -1
View File
@@ -52,10 +52,22 @@
<!-- Action Buttons -->
<div class="flex gap-4">
<a href="/find?mode=PST"
<a href="TODO"
class="inline-block bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded font-medium transition-colors">
Find Posts
</a>
{{ if canManage }}
<a href="TODO"
class="inline-block bg-gray-600 hover:bg-gray-700 text-white px-6 py-2 rounded font-medium transition-colors">
Manage
</a>
{{ end }}
{{ if canCreate }}
<a href="TODO"
class="inline-block bg-green-600 hover:bg-green-700 text-white px-6 py-2 rounded font-medium transition-colors">
Create New
</a>
{{ end }}
</div>
<!-- Information Note -->