diff options
Diffstat (limited to 'gnats-queryresult-html.lsp')
-rw-r--r-- | gnats-queryresult-html.lsp | 76 |
1 files changed, 74 insertions, 2 deletions
diff --git a/gnats-queryresult-html.lsp b/gnats-queryresult-html.lsp index f1d47ed..23fd3cb 100644 --- a/gnats-queryresult-html.lsp +++ b/gnats-queryresult-html.lsp @@ -1,10 +1,12 @@ <? local form = ... ?> <? ---[[ DEBUG INFORMATION +--[[ io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") -io.write(html.cfe_unpack(form.query)) +io.write(html.cfe_unpack(form)) io.write("</span>") --]] +if form.query ~= nil then + ?> <? @@ -117,4 +119,74 @@ for k,v in pairs(tags) do </DL> <? end ?> +<? +elseif (form.summary) then + +-- ----------------------------------------------------------------------- +-- Summary +-- ----------------------------------------------------------------------- + +require("viewfunctions") +?> + +<style> +table { margin:10px; border:2px solid #555; } +table th { border-bottom:2px solid #555; font-weight: bold; } +table td {border:1px solid #aaa; border-right:none; border-bottom:none; } +.o { background-color: #fff; padding-bottom: 0px; } +.a { background-color: #cffafd; padding-bottom: 0px; } +.f { background-color: #ffc; padding-bottom: 0px; } +.p { background-color: #d1fbd6; padding-bottom: 0px; } +.r { background-color: #d6cfc4; padding-bottom: 0px; } +.s { background-color: #fcccd9; padding-bottom: 0px; } +.c { background-color: #fff; padding-bottom: 0px; color: #888;} +.header {padding:3px;font-weight:bold;border-bottom:1px solid #665;} +DT {border:1px solid #aaa; width: 40px;} +DL { padding-top: 5px; } +</style> + +<h1>Current Alpine problem reports</h1> + +<h2>Bugs can be in one of several states (S)</h2> + +<DL> +<DT class='o' WIDTH='300px'>o - open</DT><DD>A problem report has been submitted, no sanity checking performed.</DD> +</DL> +<DL> +<DT class='a'>a - analyzed</DT><DD>The problem is understood and a solution is being sought.</DD> +</DL> +<DL> +<DT class='f'>f - feedback</DT><DD>Further work requires additional information from the originator or the community - possibly confirmation of the effectiveness of a proposed solution.</DD> +</DL> +<DL> +<DT class='s'>s - suspended</DT><DD>The problem is not being worked on, due to lack of information or resources. This is a prime candidate for somebody who is looking for a project to do. If the problem cannot be solved at all, it will be closed, rather than suspended.</DD> +</DL> +<DL> +<DT class='c'>c - closed</DT><DD>A problem report is closed when any changes have been integrated, documented, and tested -- or when fixing the problem is abandoned.</DD> +</DL> + +<H1>SUMMARY</H1> +<table style='width:98%;'> + <tr class='header'> + <th>ID</th> + <th>S</th> + <th>Submitted</th> + <th>Severity</th> + <th>Description</th> + </tr> + +<? for k,v in pairs(form.summary) do ?> + + <tr class='<? io.write(string.sub(v.state,1,1)) ?>'> + <td width='30px'><A HREF='queryresult?pr=<? io.write(v.number) ?>' STYLE='font-weight:bold;'><? io.write(v.number or "") ?></A></td> + <td width='15px'><? io.write(string.sub(v.state,1,1) or "") ?></td> + <td width='80px'><? io.write(v.submit_date or "") ?></td> + <td width='80px'><? io.write(v.severity or "")?></td> + <td style='white-space:normal;word-wrap:break-word'><? io.write(v.synopsis) ?></td> + </tr> +<? end ?> + +</table> + +<? end ?> |