additional fixes for today's demo

This commit is contained in:
2026-02-10 09:44:07 -07:00
parent 770b7abac9
commit d0ec70cb48
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -287,9 +287,9 @@ func ConferenceMembers(ctxt ui.AmContext) (string, any, error) {
maxPage := ctxt.Globals().MaxSearchPage
// Adjust the offset based on the page buttons.
if ctxt.HasParameter("prev") {
if ctxt.FormFieldIsSet("prev") {
offset = max(0, offset-int(maxPage))
} else if ctxt.HasParameter("next") {
} else if ctxt.FormFieldIsSet("next") {
offset += int(maxPage)
}
@@ -301,7 +301,7 @@ func ConferenceMembers(ctxt ui.AmContext) (string, any, error) {
ctxt.VarMap().Set("offset", offset)
ctxt.VarMap().Set("max", maxPage)
if ctxt.HasParameter("update") {
if ctxt.FormFieldIsSet("update") {
// TODO: update the levels
}
+1 -1
View File
@@ -110,7 +110,7 @@
<input type="hidden" name="term" value="{{ term }}">
<input type="hidden" name="ofs" value="{{ offset }}">
<input type="hidden" name="validUids" value="{{ validUids }}">
<div class="max-w-3xl bg-gray-50 p-6 rounded-lg">
<div class="max-w-2xl bg-gray-50 p-6 rounded-lg">
<div class="space-y-4">
{{ range _, rx := resultList }}
<div class="flex items-start gap-3">