Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: collabSidebar Arguments: Description: Page type: snippet Render function: Module: siteutil Page source: <div class="container"> <div class="accordion"> <div> <input id="ac-1" name="accordion-1" type="checkbox" /> <label for="ac-1">Invent</label> <div class="article ac-large"> <LI class="panel"><webl>Wub_ALinkCmd2("createGroup", "Create Project");</webl></li> <webl> var html = ""; var groupMembers = Wub_GroupsMembers(); var projects = Sort(ToList(groupMembers), fun(a, b) if (a < b) then return -1 elsif (a == b) then return 0 else return 1 end end); every project in projects do // only show user's groups if wubinfo.user member ToList(groupMembers[project]) then html = html + " <li class='panel'>" + Wub_ALinkCmd2("cd: " + project, project) + " -- " + Wub_ALinkCmd2(project + ".profile", "(about)") + "<br> "; html = html + " [" + Wub_ALinkCmd2("createIssue:" + project, "+Feature") + "] "; html = html + " [" + Wub_ALinkCmd2("createPresentation:" + project, "+Presentation") + "] </li>"; end end; html; </webl> </div> </div> <div> <input id="ac-2" name="accordion-1" type="checkbox" /> <label for="ac-2">Team Up</label> <div class="article ac-medium"> <webl> var html = ""; html = html + " <li class='panel'>" + Wub_ALinkCmd2("searchPeople", "Search for People") + "</li>\n"; html = html + " <li class='panel'>" + Wub_ALinkCmd2("playSkillsrank", "Play Skillsrank") + "</li>\n"; html = html + " <li class='panel'>" + Wub_ALinkCmd2("showFavorites", "Saved Favorites") + "</li>\n"; html = html + " <li class='panel'>" + Wub_ALinkCmd2("friends", "Community Friends") + "</li>\n"; html = html + " <li class='panel'>" + Wub_ALinkCmd2("activityLogs", "Activity Log") + "</li>\n"; html; </webl> </div> </div> <div> <input id="ac-3" name="accordion-1" type="checkbox" /> <label for="ac-3">Develop</label> <div class="article ac-medium"> <LI class="panel"><webl>Wub_ALinkCmd2("console", "Developer Console");</webl> </LI> <LI class="panel"><webl>Wub_ALinkCmd2("programming", "Programming Help");</webl> </LI> <LI class="panel"><webl>Wub_ALinkCmd2("advancedProgramming", "Advanced Topics");</webl> </LI> <LI class="panel"><webl>Wub_ALinkCmd2("internalapi", "Internal API");</webl> </LI> <LI class="panel"><a target="_Blank" href="http://www.wubhub.com:4110/static/webl.pdf">WebScript Guide</a> </LI> </div> </div> <div> <input id="ac-4" name="accordion-1" type="checkbox" /> <label for="ac-4">Market</label> <div class="article ac-medium"> <LI class="panel"><webl>Wub_ALinkCmd2("popular", "What's Popular");</webl></LI> <LI class="panel"><webl>Wub_ALinkCmd2("tags", "Search by Tags");</webl></LI> </div> </div> </div> </div>