blob: 7098edaf1318aef9f860fe1d359f535f464db032 (
plain) (
blame)
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
|
<html>
<head>
<style>
th {
text-transform: uppercase;
}
th, td {
padding: 5px;
}
table {
border-collapse: collapse;
}
span.test_status {
font-weight: bold;
}
span.test_fail {
color: red;
}
span.test_pass {
color: green;
}
span.test_mute {
color: blue;
}
</style>
</head>
<body>
{% for status, rows in test_results %}
<h1 id="{{ status.name}}">{{ status.name }}</h1>
<table style="width:90%;" border="1">
<thead>
<tr>
<th>test name</th>
<th>status</th>
</tr>
</thead>
<tbody>
{% for t in rows %}
<tr>
<td>{{ t.full_name }}</td>
<td><span class="test_status test_{{ t.status_display }}">{{ t.status_display }}</span></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</body>
</html>
|