Source: site.view [edit]
Function name: collaborama
Arguments:
Description:
Page type: webl
Render function:   sitepage
Module: collaborama

Page source:

var html = "<div class='12u'><div class='row'><h2>Your Projects</h2>\n";

var add = false;
var projects = [];
every m in Wub_ReadableModules(false) do
   if add then
      projects = projects + [m]
   end;
   if m == "sandbox" then
      add = true
   end
end;


html = html + "  <div class='2u'> <center><a href='/cmd/createGroup'><img height=64 src='/static/addproject.jpg'><br>" + 
     "Add Project" + "</a></center></div>\n";

every p in projects do
   var info = WubCall(p + ".profile", []) ? [. photo="/static/group.gif" .];
   var desc = info.desc ? "";
   html = html + "  <div class='2u'> <center><a href='/cmd/" + p + ".profile" + "'><img height=64 src='" + 
       info.photo + "' alt='" + desc + "' title='" + desc + "'><br>" + p + "</a><p><br></center></div>\n";
end;

html = html + "</div></div>\n";
   
var html1 = "<h2>Community</h2>\n";
   
[html, html1];