Source: site.view [edit]
Function name: groupsRender
Arguments: groups
Description: Render function to display groups
Page type: webl
Render function:  
Module: siteutil

Page source:

var s = "";

var func, item;

   if groups == [] then
      s = "None"
   end;
     
   every g in groups do
      func = Wub_GetFunctionInfo(g + ".profile");
      var desc = (WubEval(func.exec).desc ? "");
      item = "<td>&nbsp;&nbsp;&nbsp;" + Wub_ALinkCmd2(g+".profile", g) + "</td>"
       + "<td>&nbsp;&nbsp;&nbsp;" + desc + "</td>" ;
      s = s + "<tr>" + item + "</tr>\n";
   end;

NewPiece("<h1>Projects</h1><table>"+s+"</table>","text/html")