summaryrefslogtreecommitdiffstats
path: root/controller/result_templates/html.tmpl
blob: 8a09ad73054b705c63c54c8dab177566f3a4fa4e (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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="keywords" content="" />
<title>Results</title>
<link href="https://praiskup.fedorapeople.org/staticdata/patternfly-1.1/css/patternfly.css" rel="stylesheet" media="screen, print">
</head>
<body>
<div class="table-responsive">
<table class="table table-condensed table-hover">
<thead>
 <tr>
  <th>Run time</th>
: for $task_ids.keys() -> $task_id {
  <th><: $task_id :></th>
: }
 </tr>
</thead><tbody>
: for $results -> $result {
    : if ($result.exit_status)  {
 <tr class="danger">
    : } else {
 <tr>
    : }
  <td><: $result.dirname :></td>
    : for $task_ids.keys() -> $task_id {
        : if (not defined($result.tasks[$task_id].exit_status)) {
  <td>NOT AVAILABLE</td>
        : } elsif ($result.tasks[$task_id].exit_status == 0) {
  <td>OK</td>
        : } else {
  <td class="danger">FAIL</td>
        : }
    : }
 <tr>
:}
</tbody>
</table>
</div>
</body>
</html>