Merge "Reporting docker deployment improvement"
[releng.git] / utils / test / reporting / functest / template / index-tempest-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">Tempest 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="tempest-apex.html">Apex</a></li>
26             <li><a href="tempest-compass.html">Compass</a></li>
27             <li><a href="tempest-daisy.html">Daisy</a></li>
28             <li><a href="tempest-fuel.html">Fuel</a></li>
29             <li><a href="tempest-joid.html">Joid</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%">Item</th>
60                                 <th width="10%">Result</th>
61                                 <th width="10%">Status</th>
62                                 <th width="60%">Errors</th>
63                             </tr>
64                             {% for item in items -%}
65                                 {% if item in result.details.keys() -%}
66                                     {% if result.criteria[item] -%}
67                                         <tr class="tr-ok">
68                                             <td>{{item}}</td>
69                                             <td>{{result.details[item]}}</td>
70                                             <td><span class="glyphicon glyphicon-ok"></td>
71                                             {% if item is equalto "Success rate" %}
72                                             <td>{{result.errors}}</td>
73                                             {% endif %}
74                                         </tr>
75                                     {%- else -%}
76                                         <tr class="tr-danger">
77                                             <td>{{item}}</td>
78                                             <td>{{result.details[item]}}</td>
79                                             <td><span class="glyphicon glyphicon-remove"></td>
80                                             {% if item is equalto "Success rate" %}
81                                             <td>{{result.errors}}</td>
82                                             {% endif %}                                            
83                                         </tr>
84                                     {%- endif %}
85                                 {%- endif %}
86                             {%- endfor %}
87                         </table>
88                     </div>
89             {%- endfor %}
90             <button type="button" class="btn btn-more">More than two</button>
91         </div>
92         {%- endfor %}
93     </div>
94     <div class="col-md-1"></div>
95 </div>