Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: lsByTagRender Arguments: data Description: Render results of lsByTag Page type: webl Render function: Module: siteutil Page source: var s = ""; var item, func; // "view" and "edit" links for m.f var actionlinks = fun(m,f,info) var mf = m + "." + f; var go = ""; if (Str_Trim(info.arglist) == "") then go = "/" + Wub_ALinkCmd2(mf, "go") end; "[" + Wub_ALinkCmd2("site.view("+mf+")", "source") + "/" + Wub_ALinkCmd2("site.edit("+mf+")", "edit") + go + "]"; end; every f in data.funcs do var module = (data.module ? nil); if module != nil then func = Wub_GetFunctionInfo(data.module + "." + f); else func = Wub_GetFunctionInfo(f); end; item = "<td> " + Wub_TruncateWithEllipsis( func.name +"("+func.arglist+")", 28) + "</td>" + "<td> " + actionlinks(func.module,func.name, func) + " </td>" // + "<td>" + "[By: " + func.createdby + "] </td>" + "<td>" + func.description + "</td>" ; s = s + "<tr>" + item + "</tr>\n"; end; NewPiece("<h1>Functions for '" + data.tag + "'</h1><table>"+s+"</table>","text/html")