fixed display of host status on member list
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -98,12 +98,14 @@
|
||||
<div class="mb-2">
|
||||
<a href="/user/{{ rx.Username }}"
|
||||
class="text-blue-700 hover:text-blue-900 font-bold text-base">{{ rx.Username }}</a>
|
||||
{{ if rx.Uid == hostUid }}
|
||||
<span class="ml-1">👑</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="text-sm text-gray-700 space-y-1">
|
||||
<div>
|
||||
{{ ci := rx.ContactInfoQ() }}
|
||||
{{ DisplayFullName(ci) }}, from {{ ci.Locality }}, {{ ci.Region }} {{ ci.Country }}
|
||||
{{ if rx.Uid == comm.HostUid }}<span class="ml-1">👑</span>{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user