Merge "jjb: xci: xci-verify-jobs: Use clean vm to verify XCI jobs"
[releng.git] / utils / test / reporting / reporting / functest / template / index-vims-tmpl.html
1  <html>
2   <head>
3     <meta charset="utf-8">
4     <!-- Bootstrap core CSS -->
5     <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
6     <link href="../../css/default.css" rel="stylesheet">
7     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
8     <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
9     <script type="text/javascript">
10     $(document).ready(function (){
11         $(".btn-more").click(function() {
12             $(this).hide();
13             $(this).parent().find(".panel-default").show();
14         });
15     })
16     </script>
17   </head>
18     <body>
19     <div class="container">
20       <div class="masthead">
21         <h3 class="text-muted">vIMS status page</h3>
22         <nav>
23           <ul class="nav nav-justified">
24             <li class="active"><a href="../../index.html">Home</a></li>
25             <li><a href="vims-apex.html">Apex</a></li>
26             <li><a href="vims-compass.html">Compass</a></li>
27             <li><a href="vims-daisy.html">Daisy</a></li>
28             <li><a href="vims-fuel@x86.html">Fuel@x86</a></li>
29             <li><a href="vims-fuel@aarch64.html">Fuel@aarch64</a></li>
30             <li><a href="vims-joid.html">Joid</a></li>
31           </ul>
32         </nav>
33       </div>
34 <div class="row">
35     <div class="col-md-1"></div>
36     <div class="col-md-10">
37         <div class="page-header">
38             <h2>{{installer}}</h2>
39         </div>
40         {% for scenario_name, results in scenario_results.iteritems() -%}
41         <div class="scenario-part">
42             <div class="page-header">
43                 <h3><span class="glyphicon glyphicon-chevron-right"> <b>{{scenario_name}}</b></h3>
44             </div>
45             {% for result in results -%}
46                 {% if loop.index > 2 -%}
47                     <div class="panel panel-default" hidden>
48                 {%- else -%}
49                     <div class="panel panel-default">
50                 {%- endif %}
51                         <div class="panel-heading">
52                             <div class="progress-bar" role="progressbar" aria-valuenow="{{result.pr_step_ok}}" aria-valuemin="0" aria-valuemax="100" style="width: {{result.pr_step_ok}}%"></div>
53                             <span class="panel-header-item">
54                                 <h4><b>{{result.start_date}}</b></h4>
55                             </span>
56                             <span class="badge panel-pod-name">{{result.pod_name}}</span>
57                         </div>
58                         <table class="table">
59                             <tr>
60                                 <th width="20%">Step</th>
61                                 <th width="10%">Status</th>
62                                 <th width="10%">Duration(s)</th>
63                                 <th width="60%">Result</th>
64                             </tr>
65                             {% for step_od_name in step_order -%}
66                                 {% if step_od_name in result.details.keys() -%}
67                                     {% set step_result = result.details[step_od_name] -%}
68                                     {% if step_result.status == "PASS" -%}
69                                         <tr class="tr-ok">
70                                             <td>{{step_od_name}}</td>
71                                             <td><span class="glyphicon glyphicon-ok"></td>
72                                             <td><b>{{step_result.duration}}</b></td>
73                                             <td>{{step_result.result}}</td>
74                                         </tr>
75                                     {%- else -%}
76                                         <tr class="tr-danger">
77                                             <td>{{step_od_name}}</td>
78                                             <td><span class="glyphicon glyphicon-remove"></td>
79                                             <td><b>0s</b></td>
80                                             <td>{{step_result.result}}</td>
81                                         </tr>
82                                     {%- endif %}
83                                 {%- endif %}
84                             {%- endfor %}
85                         </table>
86                     </div>
87             {%- endfor %}
88             <button type="button" class="btn btn-more">More than two</button>
89         </div>
90         {%- endfor %}
91     </div>
92     <div class="col-md-1"></div>
93 </div>