cd51607b712d18a381fe724a27411457bd645d6d
[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-fuel.html">Fuel</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-joid.html">JOID</a></li>
29             <li><a href="vims-apex.html">APEX</a></li>
30           </ul>
31         </nav>
32       </div>
33 <div class="row">
34     <div class="col-md-1"></div>
35     <div class="col-md-10">
36         <div class="page-header">
37             <h2>{{installer}}</h2>
38         </div>
39         {% for scenario_name, results in scenario_results.iteritems() -%}
40         <div class="scenario-part">
41             <div class="page-header">
42                 <h3><span class="glyphicon glyphicon-chevron-right"> <b>{{scenario_name}}</b></h3>
43             </div>
44             {% for result in results -%}
45                 {% if loop.index > 2 -%}
46                     <div class="panel panel-default" hidden>
47                 {%- else -%}
48                     <div class="panel panel-default">
49                 {%- endif %}
50                         <div class="panel-heading">
51                             <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>
52                             <span class="panel-header-item">
53                                 <h4><b>{{result.start_date}}</b></h4>
54                             </span>
55                             <span class="badge panel-pod-name">{{result.pod_name}}</span>
56                         </div>
57                         <table class="table">
58                             <tr>
59                                 <th width="20%">Step</th>
60                                 <th width="10%">Status</th>
61                                 <th width="10%">Duration</th>
62                                 <th width="60%">Result</th>
63                             </tr>
64                             {% for step_od_name in step_order -%}
65                                 {% if step_od_name in result.details.keys() -%}
66                                     {% set step_result = result.details[step_od_name] -%}
67                                     {% if step_result.duration != 0 -%}
68                                         <tr class="tr-ok">
69                                             <td>{{step_od_name}}</td>
70                                             <td><span class="glyphicon glyphicon-ok"></td>
71                                             <td><b>{{step_result.duration_display}}</b></td>
72                                             <td>{{step_result.result}}</td>
73                                         </tr>
74                                     {%- else -%}
75                                         <tr class="tr-danger">
76                                             <td>{{step_od_name}}</td>
77                                             <td><span class="glyphicon glyphicon-remove"></td>
78                                             <td><b>0s</b></td>
79                                             <td>{{step_result.result}}</td>
80                                         </tr>
81                                     {%- endif %}
82                                 {%- endif %}
83                             {%- endfor %}
84                         </table>
85                     </div>
86             {%- endfor %}
87             <button type="button" class="btn btn-more">More than two</button>
88         </div>
89         {%- endfor %}
90     </div>
91     <div class="col-md-1"></div>
92 </div>