summaryrefslogtreecommitdiffstats
path: root/israwhidebroken/templates/index.html
blob: 8222d2d15f5f97f420efeee5c6e8fd3896ac35ae (plain)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="master.html" />

<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title>Is Rawhide Broken?</title>
</head>

<?python
def rclass(r):
    if r is None: return None
    return r.result and 'pass' or 'fail'
?>

<body>
  <table id="results">
    <th><a href="${prev and tg.url('/',c=prev)}">«</a>
        Rawhide compose ${c}
    <a href="${next and tg.url('/',c=next)}">»</a></th>
    <th py:for="tree in trees">${tree.arch}</th>
    <tr py:for="test in tests">
      <td><a href="${test.uri}" title="${test.short_desc}">${test.name}</a></td>
      <td py:for="tree in trees" py:with="r=results[tree.id][test.id]"
             class="${rclass(r)}" id="rbox-${test.id}-${tree.id}">
        <py:choose>
          <span py:when="in_qa and test.id in (11,12,13,14) and r is None">
            ${result_form(dict(result=rclass(r) or 'none',
                               testid=test.id, treeid=tree.id, c=c))}
          </span>
          <span py:otherwise="">
            ${rclass(r) or 'none'}
          </span>
        </py:choose>
        <a py:if="admin and r is not None"
           class="del_result" href="${tg.url('/delete_result',id=r.id)}">x</a>
      </td>
    </tr>
  </table>
</body>
</html>