Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: renderIssue Arguments: snippet Description: Page type: webl Render function: Module: siteutil Page source: var fi = Wub_GetFunctionInfo(wubinfo.cmd) ? nil; var html = snippet; if (fi != nil) then html = "<h2>" + fi.module + "." + fi.name + " -- " + fi.description + "</h2><hr>\n"; html = html + "<table width='100%'><tr><td align=left>\n"; html = html + "Assigned to: " + fi.test + "<br>\n"; html = html + "State: " + fi.flags + "<br>\n"; html = html + "Tags: " + fi.tags + "<br>\n"; html = html + "</td><td align='right'>\n"; html = html + `<a href="/webl/WubHub_DoIt?cmdline=edit(` + fi.module + "." + fi.name + `)">Edit</a>` + "\n"; html = html + "</td></tr></table>\n"; html = html + "<hr>\n"; var s = fi.exec; var i = Str_IndexOf("URL[", s); while (i >= 0) do var t = Select(s, i, Size(s)); var j = Str_IndexOf("|", t); var k = Str_IndexOf("]", t); var label = Select(t, 4, j-1); var url = Select(t, j+1, k); s = Select(s, 0, i) + `<a href="` + url + `">` + label + "</a>" + Select(s, i+k+1, Size(s)); i = Str_IndexOf("URL[", s); end; html = html + s; end; NewPiece(html, "text/html");