Source

pyobjc / build-support / templates / index.html

Full commit
<html>
  <head>
    <title>PyObjC Test results</title>
    <style type="text/css">
      table#summary {
        border-collapse: collapse;
      }
      table#summary th {
        border-left: 1px solid black;
        border-right: 1px solid black;
      }
      table#summary th.bottom {
        border-left: 1px solid black;
        border-right: 1px solid black;
        border-bottom: 3px solid black;
      }
      table#summary th.bottom-left {
        border-left: 1px solid black;
        border-right: none;
        border-bottom: 3px solid black;
      }
      table#summary th.bottom-mid {
        border-left: none;
        border-right: none;
        border-bottom: 3px solid black;
      }
      table#summary th.bottom-right {
        border-right: 1px solid black;
        border-left: none;
        border-bottom: 3px solid black;
      }
      table#summary td {
        border: 1px solid black;
      }
      /*
      table#summary tr.ok td { 
        background-color: green;
      }
      table#summary tr.warning td { 
        background-color: orange;
      }
      table#summary tr.error td { 
        background-color: red;
      }
      */

      table#summary td.ok { 
        background-color: rgb(0, 120, 0);
      }
      table#summary td.warning { 
        background-color: orange;
      }
      table#summary td.error { 
        background-color: red;
      }
      table#summary td.crash { 
        background-color: red;
        text-decoration: underline;
      }

    </style>
  </head>
  <body>
    <h1>PyObjC Test results</h1>

    <ul>
      <li>Repository:  {{ svn['url'] }}</li>
      <li>Checkout:    {{ svn['revision'] }}</li>
      <li>OSX Version: {{ osx['version'] }}</li>
      <li>Timestamp:   {{ timestamp }}</li>
    {% for ver, style in sorted(versions) %}
      <li><a href="#{{ver}}--{{style}}">Python {{ver}} ({{style}})</a></li>
    {% endfor %}
    </ul>

    {% for ver, style in sorted(versions) %}

    <a name="${ver}--${style}"><h2>Python {{ ver }} ({{ style }})</h2>

    <table id="summary">
      <tr>
        <th></th>
        <th colspan="2">Build</th>
        {% for a in versions[(ver, style)][0]['archs'] %}
        <th colspan="3">Test ({{ a }})</th>
        {% endfor %}
      </tr>
      <tr>
        <th class="bottom">Subproject</th>
        <th class="bottom-left">Warnings</th>
        <th class="bottom-right">Errors</th>
        {% for a in versions[(ver, style)][0]['archs'] %}
        <th class="bottom-left">Pass</th>
        <th class="bottom-mid">Fail</th>
        <th class="bottom-right">Error</th>
        {% endfor %}
      </tr>
      {% for item in versions[(ver, style)] %}
      <tr class="{{ item['class'] }}">
        <td>{{ item['name'] }}</td>
        <td class="{{ item['class_warnings'] }}">{{ item['build_warnings'] }}</td>
        <td class="{{ item['class_errors'] }}">{{ item['build_errors'] }}</td>
        {% for a in item['archs'] %}
        <td class="{{ item[a]['class_pass']}}">{{ item[a]['test_pass'] }}</td>
        <td class="{{ item[a]['class_fail']}}">{{ item[a]['test_fail'] }}</td>
        <td class="{{ item[a]['class_error']}}">{{ item[a]['test_error'] }}</td>
        {% endfor %}
      </tr>
      {% endfor %}
    </table>

    {% endfor %}
  </body>
</html>