additional fixes for today's demo
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user