Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: friendsRender Arguments: data Description: A render function for displaying friends Page type: snippet Render function: Module: siteutil Page source: <h1>Community Friends</h1> <ul> <webl> var html = ""; if data != nil then html = "<table width='100%'>"; var i = -1; every m in Sort(ToList(data), fun(a,b) a = Str_ToLowerCase(a); b = Str_ToLowerCase(b); if a>b then 1 elsif a == b then 0 else -1 end end) do i = i + 1; if i mod 6 == 0 then html = html + "</tr><tr>" end; var photo = (WubCall(m+".profile", []).photo ? nil); html = html + "<td align=center>"; if photo != nil then html = html + Wub_ALinkCmd2(m+".profile","<img height=100 src='" + photo + "'>") + "<br>" else html = html + "<br><br>" end; html = html + Wub_ALinkCmd2(m+".profile", m) + "<br>" + " (" + data[m] + ")</td>\n"; end; html = html + "</tr></table>" else html = "No members." end; html; </webl> </ul>