From beddade58f4af1066cb46714efd59c2e2ba659ca Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Wed, 22 Oct 2025 21:04:30 -0600 Subject: [PATCH] fixed display of host status on member list --- community.go | 2 ++ ui/views/memberlist.jet | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/community.go b/community.go index 2575673..9f40ba6 100644 --- a/community.go +++ b/community.go @@ -341,6 +341,7 @@ func MemberList(ctxt ui.AmContext) (string, any, error) { } ctxt.SetLeftMenu("community") ctxt.VarMap().Set("comm", comm) + ctxt.VarMap().Set("hostUid", *comm.HostUid) showHidden := ctxt.TestPermission("Community.ShowHiddenMembers") ctxt.VarMap().Set("canExport", showHidden) ctxt.VarMap().Set("field", "name") @@ -392,6 +393,7 @@ func MemberSearch(ctxt ui.AmContext) (string, any, error) { term := ctxt.FormField("term") ctxt.SetLeftMenu("community") ctxt.VarMap().Set("comm", comm) + ctxt.VarMap().Set("hostUid", comm.HostUid) showHidden := ctxt.TestPermission("Community.ShowHiddenMembers") ctxt.VarMap().Set("canExport", showHidden) ctxt.VarMap().Set("field", field) diff --git a/ui/views/memberlist.jet b/ui/views/memberlist.jet index c243cf5..78f4a2c 100644 --- a/ui/views/memberlist.jet +++ b/ui/views/memberlist.jet @@ -98,12 +98,14 @@
{{ rx.Username }} + {{ if rx.Uid == hostUid }} + 👑 + {{ end }}
{{ ci := rx.ContactInfoQ() }} {{ DisplayFullName(ci) }}, from {{ ci.Locality }}, {{ ci.Region }} {{ ci.Country }} - {{ if rx.Uid == comm.HostUid }}👑{{ end }}