index.mako 2.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Result summary</title>
    <link rel="stylesheet" href="index.css" type="text/css" />
  </head>
  <body>
    <h1>Result summary</h1>
    <p>Currently showing: ${page}</p>
    <p>Show:
      % if page == 'all':
        all
      % else:
        <a href="index.html">all</a>
      % endif
      % for i in ['changes', 'fixes', 'problems', 'regressions', 'skipped']:
        % if i == page:
          | ${i}
        % else:
          | <a href="${i}.html">${i}</a>
        % endif
      % endfor
    </p>
    <table>
      <colgroup>
        ## Name Column
        <col />

        ## Status columns
        ## Create an additional column for each summary
        % for _ in xrange(colnum):
        <col />
        % endfor
      </colgroup>
      % for line in results:
        % if line['type'] == "newRow":
        <tr>
        % elif line['type'] == "endRow":
        </tr>
        % elif line['type'] == "groupRow":
          <td>
            <div class="${line['class']}" style="margin-left: ${line['indent']}em">
              <b>${line['text']}</b>
            </div>
          </td>
        % elif line['type'] == "testRow":
          <td>
            <div class="${line['class']}" style="margin-left: ${line['indent']}em">
              ${line['text']}
            </div>
          </td>
        % elif line['type'] == "groupResult":
          <td class="${line['class']}">
            <b>${line['text']}</b>
          </td>
        % elif line['type'] == "testResult":
          <td class="${line['class']}">
61 62 63
          ## If the result is in the excluded results page list from
          ## argparse, just print the text, otherwise add the link
          % if line['class'] not in exclude:
64 65 66
            <a href="${line['href']}">
              ${line['text']}
            </a>
67 68 69
          % else:
            ${line['text']}
          % endif
70 71 72 73 74 75 76 77 78 79 80 81
          </td>
        % elif line['type'] == "subtestResult":
          <td class="${line['class']}">
            ${line['text']}
          </td>
        % elif line['type'] == "other":
          ${line['text']}
        % endif
      % endfor
    </table>
  </body>
</html>