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